Jump to content

Change
HostCell.net Shared Hosting plan

Important Announcement!

Welcome to Hostcell 2.0! If you are an existing member and have trouble logging in please reset your password! If you are still having trouble, contact us on admin@hostcell.net and we can reset the password for you!


DIVs vs. Tables


12 replies to this topic

#1
OFFLINE   faraway

    Member

  • Members
  • 12 posts
I'm good at CSS. But I still often like to set up a layout with a big simple table to allow resizable 'rubber band' type layout. The DIV code to allow this sort of flexible layout just seems clunkier to me than using a nice simple table. I don't use nested tables, so I don't think I'm suffering in terms of SEO. It seems you should use the tool for the job. For things that are accurate, detailed and typographic, CSS is the tool. For things that are 'boxy' and tabular, tables seem like the right way to go.

HostCell.net Shared Hosting plan

#2
OFFLINE   HCN-SeriesN

    Advanced Member

  • Administrators
  • 1,221 posts
I preffer div over table as it is much more flexible and better looking.

#3
OFFLINE   Saint

    Exceedingly Senior Member

  • Members
  • 1,954 posts

Quote

... It seems you should use the tool for the job...
Quite right. (Same sort of thinking as on the PHP-Classes thread.) Warning: Using the right tool for the job only works in real life when you are in charge of the project. In college, using the tool that the professor likes helps you pass the course. If you work for an employer, using the tool that your boss likes helps you get promoted.

#4
OFFLINE   phenetic

    Advanced Member

  • Members
  • 42 posts
Div can do the same thing as tables and then some, whoch is why I prefer too use that instead of tables.

#5
OFFLINE   Lordrach

    Advanced Member

  • Members
  • 52 posts

Quote

I'm good at CSS. But I still often like to set up a layout with a big simple table to allow resizable 'rubber band' type layout. The DIV code to allow this sort of flexible layout just seems clunkier to me than using a nice simple table. I don't use nested tables, so I don't think I'm suffering in terms of SEO. It seems you should use the tool for the job. For things that are accurate, detailed and typographic, CSS is the tool. For things that are 'boxy' and tabular, tables seem like the right way to go.
combine them both to get the maximum of each

#6
OFFLINE   HCN-SeriesN

    Advanced Member

  • Administrators
  • 1,221 posts
Lord got the perfect answer. :,)

#7
OFFLINE   HCN-willyhsv

    Advanced Member

  • Support Team
  • 1,858 posts
We need a "Like" button so facebook can sue us.... Anyways, I would click Lordrach's answer if we had one... LOL

#8
OFFLINE   Lordrach

    Advanced Member

  • Members
  • 52 posts
lol thx :p btw I think that using facebook API would be a great idea to promote the community on Facebook, you can integrate the like and share functionality on the fly

#9
OFFLINE   BAngel

    Advanced Member

  • Members
  • 33 posts
Yeah, I agree with HCN-SeriesN. But also it's quite tricky to set a div, because of browsers compatibility.

#10
OFFLINE   Aus Web Design

    Advanced Member

  • Members
  • 149 posts
if a div setup is done correctly then you shouldnt run into problems it just takes time to do. i personally like divs over tables. i have used both and find a div layout alot better. but its up to you both types have pro's and con's. both are able to be set to percentages not fixed width.
easy way to decide flip a coin. haha thats how i usually do it or like SeriesN suggested use both!

View PostHCN-SeriesN, on 07 August 2011 - 02:50 AM, said:


As my teacher says. BACKUP BEFORE YOU EDIT!

Posted Image

#11
OFFLINE   veightar

    Advanced Member

  • Members
  • 53 posts
The old days tables huh. I thought they were gone for good as far as website layouts are concerned. But I'm both shocked and impressed to see them still in existence. Anyway, I thought div was to replace tables in layout.

Div tag is more flexible and useful than tables. For me I like using them.

#12
OFFLINE   kellygbs

    Member

  • Members
  • 10 posts
Div is better in Layout construction and Table is best in Content or Data Arrangement...

#13
OFFLINE   Aus Web Design

    Advanced Member

  • Members
  • 149 posts
tables are actually a hack of html code that people use for layouts. Divs were designed for layouts.

View PostHCN-SeriesN, on 07 August 2011 - 02:50 AM, said:


As my teacher says. BACKUP BEFORE YOU EDIT!

Posted Image