Jump to content

Archived

This topic is now archived and is closed to further replies.

brown2005

<div> or <table>

Recommended Posts

i know this aint a php question... but wat is best for designing websites, using <tables> or <divs>

Share this post


Link to post
Share on other sites
Can I ask how you can make tables with <div>s?

Aren't <div>s just horizontals?

Share this post


Link to post
Share on other sites
Depends. Layout should be done in <div>

tabular data should be done in tables :)

<div> load faster than <table> do. Or thats my experience.  Though <div>s need more tricks to employ to get them to look the same across different browsers.

Its why I used tables for so long.  I didnt really have to worry about them not working properly in other browsers.  Now that I am using <div> its a bit more work, but the pages look nicer, are easier to manage and load faster :)

Share this post


Link to post
Share on other sites
You can 'float' the <div> tables to make tables. It can get hectic but it is doable :)

Share this post


Link to post
Share on other sites
I use tables everywhere and I'm not new to CSS but i rarely use <div> because I've found it such a pain in the past. Know any sites I can look at to see how they can be used?

Share this post


Link to post
Share on other sites
My site uses simple 2 column CSS layout

www.tingram.ca

Should be able to see the source code to see how the floats are done. I dont use the css sheet much because I was playing with the div tags individually.

This site: http://css.maxdesign.com.au/floatutorial/  I've used a few times to help me figure out layouts and such.

As for tables using <div> I can't remember where I saw an example of it.  I'm sure google can find something about it though.

Share this post


Link to post
Share on other sites
Search engines prefer divs over tables since there is less tags, and therefor a smaller amount of data it has to read through.

Share this post


Link to post
Share on other sites
Use CSS to control the <div> the size, position, color etc.

Link the style sheet outsite and you page will be very clean for SEO too!

Share this post


Link to post
Share on other sites
how do you learn how to make tableless div only websites?

Share this post


Link to post
Share on other sites

×

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.