TheFilmGod Posted June 25, 2007 Share Posted June 25, 2007 Is it a good idea to have a page in a simple table for a structure. And in each cell nest a CSS element? Does that go against the purpose of CSS or what do you think? Quote Link to comment Share on other sites More sharing options...
AndyB Posted June 25, 2007 Share Posted June 25, 2007 It makes no sense at all. Tables are for displaying tabular data, not for layout. Quote Link to comment Share on other sites More sharing options...
TheFilmGod Posted June 26, 2007 Author Share Posted June 26, 2007 Actually I have to disagree with you. To create a very basic table and put CSS elements into it is a great idea. It still makes validate XHTML, and it ensures that the elements are at least put in proper places. So they can't be off TOO MUCH. Here is a good simple table: +------------------------+ | | | header | +------------------------+ | | | |BODY 1 | body2 | | | | | | | +------------------------+ | | | footer | +------------------------+ Browsers vary in such a degree when rendering CSS elements that putting them in a simple table creates a basic structure - where crazy overlapping and messups are less likely to happen. As a matter of fact, FireFox is terrible at rendering CSS positioning. IE6 does a better job! - My point exactly. Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted June 26, 2007 Share Posted June 26, 2007 Actually I disagree with YOU FilmGod. Bottom line is there is not enough diskspace on this server to explain why tablelayouts are NEVER better than css layouts. You will simply have to accept that. If you can't get a layout to work with just css and have to resort to tables then you aren't using the css right... Browsers do vary - and thats a wonderful thing but if you use a good dtd (xhtml 1.1 is weapon of choice) then you can get VERY good results across browsers. Tables are for tabular data and NOTHING else. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.