Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
well i know a crap load about making websites but for some reason, i dont know the answer to this question. the questions comes up as... is it better to use more tables or less tables?
i just helped a friend remake his site, but instead of using lots of tables like i usually do, i've took some of the tables out, but the source is really hard to use and it's confusing. i could easily change it to have more tables (i could fit like 6 more tables in there if i needed to) it's just confusing to me though about not having a lot of tables and everything is like linked to everything else because it's all in this one table and crap.
well... so my question is, is it better to use more or less tables? or does it depend on what it's needs are? thanks for any input!
FBI Agent
AIM: EliteAssassin187

There is no right or wrong answer. Use as many tables as you need - no more no less. Although, I'm not sure how many table YOU need. If you are leaning too heavily on tables, then you might need to spend some time honing your skills in other area.
I still use tables for basic page layout, but the new convention is to use CSS for layout. You can do just about everything you can do with tables with CSS instead.
Michael J

agreed
the idea of tables is to give you more control of the positioning of elements in your page...
if you can get things just the way you want without tables, go for it
if you cant
then use tables
if your code is all over the place, then lay it out better paragraphs, indenting, etc etc

well im currently remaking the site and im using more tables than i had before (it should make it easier to see what im doing). i'll tell ya how it goes after that.
ummm... about making a page with just CSS... is that even possible? you'll end up having a lot of div's or span's or something that is setting the position and that seems to me less understandable.
i would usually use PHP to make this way simpler to make with the tables but im doing this for a friend which doesnt know PHP. well anyway, thanks for the advice. more tables it is!!!!
FBI Agent
AIM: EliteAssassin187

yeah... using more tables is a lot better. first of all there's not like this white space around one of my tables, and i can actually go through the code and find what im looking at like how i couldnt before, especially w/o comments.
http://xellos357.freesuperhost.com/suckitmike/dylanlol3.htm
the one w/o many tableshttp://xellos357.freesuperhost.com/suckitmike/dylanlol4.htm
the one with more tablesyou can check out the sources on those
FBI Agent
AIM: EliteAssassin187

I actually think CSS makes the building process easier because it separates content from design.
For example you have a span for the "right menu" and then you put the right menu contents within that div. You can then change any of the properties of the right menu by changing the properties of "right menu" in the style sheet. You have just as much, if not more, control over the design than you do with tables.
But, its definitely better to go with what is comfortable for you.
Michael J

hey, i just use tables because that's what im supposed to use. i dont know any huge companies that do just spans. i really dont care what's easier, i just want to do it more appropriate, more with the common practices and sense i hear that most people use tables, i think i'll just stick with those. it does sound pretty easy the way you say it though, i think that the sceen resolution would have to much effect on it on the spacing of each page doing it that way. so in that aspect, i think my way is better
FBI Agent
AIM: EliteAssassin187

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |