91-9990449935 0120-4256464 |
CSS TableWe can apply style on HTML tables for better look and feel. There are some CSS properties that are widely used in designing table using CSS:
CSS Table BorderWe can set border for the table, th and td tags using the CSS border property. Test it NowOutput:
CSS Table Border CollapseBy the help of border-collapse property, we can collapse all borders in one border only. Test it NowOutput:
CSS Table PaddingWe can specify padding for table header and table data using the CSS padding property. Test it NowOutput:
CSS Table: Styling even and odd cellsWe can style even and odd table cells for better look and feel. In this code, we are displaying different background colors on even and odd cells. Moreover, we have changed the background-color and color of <th> tag. CSS code: Test it NowOutput:
Next TopicCSS Display
|