Tables vs. CSS

I use tables for layout.

I do this because they are simple to construct and work in a predicable way.

I can hear the CSS advocates out there sharpening their knives, but wait: first read this article, which argues the points better than I could.

Bear in mind the the middle ‘S’ in CSS is style and not layout. CSS doesn’t really do layout very well – and html tables are a good example of this point.

I was reading several articles on both sides of the argument, and often the writers would only list the benefits of their approach. The fact the debate isn’t dead and buried means there is a case on both sides.

The real answer is: use whatever suits you best.

Advertisements

2 thoughts on “Tables vs. CSS

  1. Your about using tables for table data. But using tables for styling and layout of non-table data seems wrong to me. But i suppose your last sentence says it all 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s