Jump to content

Why Css And Not Table?


mostafatalebi

Recommended Posts

Hello everybody

 

I have been always recommended not to use tables for non-tabular data and not use it for layout purposes. For layout purposes, instead use <div> and CSS. Why? It is much more harder to control the flow of layout elements using <div> tag. For instance I have a website, that content are mainly placed in three section: left bar, center column, right bar. The two marginal bars are for links and new, and the center area is for main content. Achieving this with <div> is much more harder, it slips. For instance, I use float:right/left but it doesn't work while using three column tables I easily manage my layout. Please HELP ME

Link to comment
Share on other sites

As for the why: its just wrong to use tables. It might work, but its bad practice. It makes it harder for people using screen readers. An analogy might be using "txt spek" to write a term paper. Can you be understood? Yes. Is it correct? No.

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.