CSS Table

TimTDP

Expert Member
Joined
Feb 23, 2007
Messages
1,228
Reaction score
131
Location
Under the slopes of Table Mountain
I am very new at CSS and need to learn how to create tables in CSS
all I want is a simple table with 2 columns and 3 rows. No header or footer

What is the CSS and HTML code?

Many thanks in advance
 
Containing div with overflow=auto and fixed width.
Then 6 divs with float=left with their width set.
 
Ok but why would you want to create a table out of CSS, what would one gain if you use CSS instead of the normal HTML table tags?

I do think its bad design to use table tags for formating. But if you have tabular data why not use the tags that was designed for it?

Any input would be appreciated.
 
Ok but why would you want to create a table out of CSS, what would one gain if you use CSS instead of the normal HTML table tags?

I do think its bad design to use table tags for formating. But if you have tabular data why not use the tags that was designed for it?

Any input would be appreciated.

Agreed. I'm a huge proponent of DIVs and CSS, but when you need to layout tabular data, you should use a TABLE. I've read many expert opinions on this and they all tend to agree. The amount of markup to layout tabular data using DIVs and CSS just isn't worth it - you end up with MORE bytes to send through to the client than what a TABLE would offer.
 
Top
Sign up to the MyBroadband newsletter
X