PDA

View Full Version : Tables in XHTML


r0ck1t
12-09-2003, 08:48 AM
I am rewriting some free forum software making it as XHTML/CSS compliant as I can. The thing I want to know is in the topic listing and post displays can I use tables or is there a way to make it display like tables using CSS?

SlySecretSpy
12-10-2003, 01:38 AM
Use Div's with the "display:block" style.

liorean
12-10-2003, 01:48 AM
Of course you can use tables. Question is, are tables appropriate? A forum listing or thread listing can be considered tabular data, so tables aren't inapproprate. Just see to that you're using something that seems to make sense, use semantic elements instead of font, b, i, or for that matter span, div.

(Do a search for 'semantic', 'semantics' or 'semantically' on these forums to find some posts that goes more in depth about this.)

Remember, a page can have tableitis, but on the other hand it can also have divitis. Using either sparingly and only when they are the right elements to use is the key. It's all about semantics.