Styling Tables

Table borders

Border of a table can be set by the previously discussed method.

Collapse borders

Since the elements like th, td, tr are concurrent to each other, setting a border for each one results in double borders which is undesirable. This situation can be avoided by using border collapse attribute.

Other table attributes

Like other elements, we can set the padding, width, color, text alignment and height of the table.


We this knowledge of CSS, I think you are prepared enough to work and start developing your own HTML decorated pages.

Member Login

Member Login

Not a Member? Sign Up!

Login to comment

Be the first to comment on this topic


<<< Wanna review