View Full Version : Div Vs Table
LTheobald
Mar 1, 2004, 01:19 PM
Just a quick question. I've seen a few pages on the internet about using DIV tags instead of tables. Could someone just quickly tell me what's the best to use? I could imagine DIV tags would provide you more control via CSS, but I can also see that they would be a pain in the to use.
Basically what is more professional etc.
coreybryant
Mar 26, 2004, 10:34 AM
Tables were really never created for web positioning / placement. They were supposed to hold tabular data. But it was / is so easy to use them for those purposes.
DIVs are becoming more & more popular but a lot of the browsers still do not render the code properly. DIVs have a little more power than tables on some of the things that they can do so a lot of times I use them in conjunction with one another.
LTheobald
Mar 26, 2004, 10:54 AM
Cheers Corey. That's what I needed to hear.
retsoksirhc
Apr 2, 2004, 08:53 PM
Also, theoretically tables will make text appear aligned the same in all browsers, but divs will make it appear the same, if that makes any sense. Its like using pixels for width instead of percent in frames, it shoe sup deifferent on different PC's, depending on settings. Using tables can have this same effect if you are not careful, but are easy to use. Divs offer a little more flexability and will appear exactly the same on every broweser in every operating system (or are supposed to at least)