Jump to content

[SOLVED] Css in Tables?


TheFilmGod

Recommended Posts

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. :o

Link to comment
https://forums.phpfreaks.com/topic/57024-solved-css-in-tables/#findComment-282692
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/57024-solved-css-in-tables/#findComment-282983
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.