tableless css?
- Started
- Last post
- 5 Responses
- CX
When doing tableless css do you ever have to use tables? For instance for rows of thumbnails or looping a table row when outputting dynamic data?
- mirola0
only for tabular data like scores, statistics and that sort of stuff.
- nicora20
Just a thought, but you could use the float:left; attribute. Not as controlable as tables, but take a look:
- sparker0
it just depends on the data needing to be rendered. if it is tabular in nature - ie spreadsheet style - then tables are fine.
the concept is that tables are NOT used for layout and design...
a grouping of thumbnails could be construed as tabular in nature, so it would be find to use xhtml tables.
remember, though, within xhtml a lot of the non-valid attributes have been removed. xhtml is strict in it's definition. tables don't offer some of the attributes in xhtml they do in html.
in xhtml/css layouts a table is just that, a table of data. it doesn't hold color information, it doesn't hold layout and positioning information, it doesn't hold spacer gifs or anything like that...it is essentially a spreadsheet for browser rendering.
the css layer handles all visual rules.
this conforms with the correct way of developing sites...seperating content, style, scripting and markup (or as zeldman's book says - structure, presentation and behavior).
:)
- vena0
use what works and is most convenient and extensible for the project.
it just happens that when you really know css, it works best :)
- CX0
nicora2, thats a really good example of arranging the thumbnails, thanks. sparker, thanks for the description. That cleared up a lot of questions.
judging from nicora2s example I guess you could easily use css w/o tables to loop dynamic data like you would in a table row.
If I have any other questions later Ill submit them on this thread. Thanks.