Categories
Web Development

CSS positioning does not negate using tables

I became such an out-of-control CSS bigot that I forgot that tables are actually awesome for displying, well, tabular data.

Share

No matter how much you work with CSS and tricked out positioning, you will have a problem creating a table without actually using one.
See, the problem has to do with height, the bane of most browser design, and drawing the bottom border. You can create a bunch of <div> elements that float right next to each other, you can even draw borders on the sides and everything will appears hunky dory except for the fact that divs do not give a hoot about the aligning their bottom borders. You can be a wiseass and set the div height in the stylesheet, but then your are married to a specific height. If a user puts just a tiny bit too much data, it will not look nice.
So you can use tables. Not for layout, but just to display data in tabular format. No one will die, I will not tell and definitely the CSS god allows that.
Tables are for tables.

Share

Leave a Reply

Your email address will not be published. Required fields are marked *

 

Share