3 ms·
Me too but the separation of content and layout is important.
by hartror 16y ago
Me too but the separation of content and layout is important.
- thetrumanshow 16y agoCan you please explain this or link to something that does? I mean, I've been 'floating divs' and 'clearing both' for a while because someone/some article told me that its better, but tables are so much more predictable. The only reason I ever use floating divs in practice is when I'm worried some designer friend is going to view source on my pages and laugh at all the tables. Also, if I am expected to use floating divs all the time, can someone just link me to a floating div table generator already? :)
- Jasber 16y agoSeparation of layout and content allows you to do things like this: http://www.csszengarden.com http://www.csszengarden.com A few benefits that may be worth the headaches of floating divs: * Redesign your pages without ever touching HTML (mobile/tv version) * Improved SEO by arranging important content up top * (Generally) lighter page sizes because CSS is in external file being cached But I actually use floating divs because I find them easier. Tables are easy too, but after years of hacking on broken CSS--most of the thorns have faded away for me. YMMV. Use what works best.
- jonknee 16y agoI think that used to be more important, but these days when your pages are being generated from templates on the fly it's not much harder to change the template than the CSS.
- isleyaardvark 16y agoI've always thought it's much more important to avoid tables when you're using templates. Using divs allows you to make your website more modular, you don't have to think to yourself "ok, should there be a tr there or another table?" Tables may be easier on the initial setup, but for maintenance they are a pain. And considering the tools we have to make CSS easier (the Blueprint framework, 960grid, etc.), there's no reason to use tables.
- xyzzyb 16y agoUnless you're displaying tabular data. Yes, I've seen sites using divs for genuine table data.
- benologist 16y agoIt's already seperated. One is in the db, one is in a pile of files that will be mostly deleted on the next major update.