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
https://forums.phpfreaks.com/topic/271770-why-css-and-not-table/
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.

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.