Dynadot โ€” .com Registration $8.99

Div vs Tables

Spaceship Spaceship
Watch

Unknown

Established Member
Impact
3
I recently saw that many designers are beginning to use the DIV method to layout their templates instead of tables.

Can anyone offer insight to development through either and what the pros/cons are for each, and which do you preffer? Some examples would also be greatly appreciated.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable DomainsUnstoppable Domains
0
•••
0
•••
i agree, divs provide much better flexibility and added features than tables.
 
0
•••
I used to code all in tables because I didn't know how to use Divs. I eventually sat down and learned and I tell you, it's the best thing that i've ever done.

It's like comparing a pen to a word processor. A pen is old and can be sloppy but it's still used and some people prefer it. A word processor is quick, cleaner and easier to use.
 
0
•••
Nitro said:
I used to code all in tables because I didn't know how to use Divs. I eventually sat down and learned and I tell you, it's the best thing that i've ever done.

It's like comparing a pen to a word processor. A pen is old and can be sloppy but it's still used and some people prefer it. A word processor is quick, cleaner and easier to use.

Definitely true. Divs are standard these days.
 
0
•••
I have used table tag for years so now its really hard to move to DIV. But I think its something has to be done so I'm trying to learn these days.
 
0
•••
DIVs are standard these days, although I learnt web design 8+ years ago (self-taught), and back then tables and frames were the norm. Hated CSS when it became popular. Although now I can retro-actively see that CSS and DIVs are the more flexible method. I couldn't code with tables anymore, whereas at one point I could barely code with CSS (hated it that much). Good times, lol!
 
0
•••
tristanperry said:
DIVs are standard these days, although I learnt web design 8+ years ago (self-taught), and back then tables and frames were the norm. Hated CSS when it became popular. Although now I can retro-actively see that CSS and DIVs are the more flexible method. I couldn't code with tables anymore, whereas at one point I could barely code with CSS (hated it that much). Good times, lol!
your experience with having to switch from tables to css reminds me of how people are currently feeling about vista. they aren't used to it (and are a tad "slow" :red:) so they prefer the older versions... even though vista is better. :blink:
 
0
•••
I'm going for div. It's easier to manage, requires less code etc.
 
0
•••
shockie said:
divs are much cleaner, require much less code,
:|

and easier to manipulate.
Okay, I can agree there.

I decided to start using divs a few months ago rather than tables and I still have hard times with them. Even complicated layouts were easier for me with tables. If I drew it out, I could easily code it. With divs, I often have strange problems I never encountered with tables - but it's the standard, and people refuse to help with my coding problems unless I use current standards, so I use div.

I have to say, as far as the actual look of the page, the viewer cannot tell if you're using div or tables - but div seems to be a lot more work. However, there are certain things that can be done much easier with divs, especially when it comes to the time you want to slightly change the look of the page... but I still say tables are much easier to create and work with.
 
0
•••
yilduz said:
I have to say, as far as the actual look of the page, the viewer cannot tell if you're using div or tables

Yup... but search engine CAN tell you a lot more if you use divs than tables.

Something noboday has said yet is that it is easier to have a site optimized using DIVs than using tables.

I.e. You can place a div right after the <body> tag with important, bolded keywords, headinds, etc... that you need located right at the very end of the page.

Using DIVs the SE found them first so they gives them more weights, relevance than the text they find near the end of the page (and if they reach it... cuz if the page is too long, they won't even bother.

Using tables... well.. I think you can still place the table right after the body tag and them move it using CSS... but it's a pain in the neck.

DIV are easier once you get used to them.
 
0
•••
I've been searching for a good 3 days now and can't find any good online tutorials for div design. All I found was a bunch of Myspace layout websites but no tutorials. Anyone know any good tutorials/guides that I can check out b4 buying a book.
 
0
•••
i say go with the latest if i have time lot more features that the old can't perform.
 
0
•••
weblord said:
i say go with the latest if i have time lot more features that the old can't perform.

Not sure what you mean by that
 
0
•••
For some things, tables work more reliability, such as 3 column layouts.

Many sites, including Google, use a hybrid of DIVs and tables for compatibility / better ensure a layout renders as expected.

Use what works best for your needs.

Ron
 
0
•••
Just thought I would offer a bit of insight.

Think of tables as an excel spreadsheet, or a database. Meaning, tables shouldn't necessarily be not used, but only used for tabular data. Hence the word table? :|

Think of div's as layers such as in photoshop. With css, you can do anything you want with a div. Any size, any position, any order (no matter what order they are in.

And yes, I would say that the use of div's and css have been a standard for quite a few years now. CSS Zen Garden (http://www.csszengarden.com/) is a great place to showcase the possibilities of css and to also learn css techniques by downloading and looking at some of the code there.

Hope this helps
 
0
•••
I used tables for awhile. I started using divs more and more and now rarely use tables. Once you get the hang of things, divs are easier to work with and the code is so much cleaner.
 
0
•••
alegend said:
divs are easier to work with and the code is so much cleaner.
i completely agree. i don't see how codes for a table layout can possibly be cleaner or require less code.
 
0
•••
there is sometimes that you will need to do tables for tabed data ,you can make clean tables using style , i agree with guys about divs are perfect , they are hard to manipulate at first but once you get hold of the string wheel you will love it ,

Tv
 
0
•••
Dynadot โ€” .com Registration $8.99Dynadot โ€” .com Registration $8.99
Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back