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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.