Welcome Guest ( Log In | Register )


 Rules

Don't want to be BANNED? Read the rules!

2 Pages V   1 2 >  
Reply to this topicStart new topic
 Tables Vs Div For Page Layout, CSS All The Way
Tables Vs Div For Page Layout
Tables Vs Div For Page Layout
Tables [ 22 ] ** [70.97%]
Divisions [ 5 ] ** [16.13%]
Other [ 0 ] ** [0.00%]
No Opinion [ 4 ] ** [12.90%]
Total Votes: 31
Guests cannot vote 
d3bruts1d
post Sep 23 2005, 07:58 AM
Post #1


 Mac User
******
Group: Forum Admins
Posts: 9,037
Joined: 4-April 02
From: Knoxville, TN
Member No.: 717



I'm debating on how I want to code a new website that I'm working on. As anyone with HTML experience knows, there are really three ways to accomplish a standard 3 column layout, such as the one used here on OCC and many other sites.

The first option is to use tables, like OCC and my own personal site. The code is ugly and complex, but it gets the job done. If someone tries to shrink the browser window down, the site format still holds together pretty good.

The next option, which is gaining popularity is to use "div" tags, which is short for divisions. Slashdot.org just moved to this method. This leads to a lot simpler code, but things can get pretty ugly when a user tries to change the browser size.

The third "option" which, to be honest, hasn't been a true option since the late 80's is to use frames. This just sucks anyway you look at it.

Styling will be done using CSS regardless of how the layout is done.... Tables vs. Div


Just wanted to get some feedback from others on what they prefer when creating or maybe even viewing a page.


--------------------
d 3 b r u t s 1 d

d3bruts1d.com | Profiles: XBL :: FLX :: TW :: FB :: SV
More OCC: | XB360 :: X :: S :: Tw :: Pl :: FB :: L.fm :: W :: F@H
Go to the top of the page
 
+Quote Post
Nerm
post Sep 23 2005, 09:26 AM
Post #2


OCC Beefcake
******
Group: Forum Admins
Posts: 7,751
Joined: 22-February 04
From: Madison, IN
Member No.: 8,628



I love tables! Every site I do uses the table method. smile.gif


--------------------

Main Rig :: Q6600 @ 3.8Ghz :: 2x HD4850 Crossfire :: Asus P5K3 Premium Black Pearl ::
HTPC :: 4850e :: HD2600xt :: Gigabyte GA-MA78GM-S2H :: 1TB Storage ::
Ubuntu Server :: Athlon XP 2500+ :: Radeon 9800xt :: MSI K7N2 ::

OCC Site Rules :: Site Help FAQ :: Extreme Cooling FAQ :: OCC Benchmark Team
Go to the top of the page
 
+Quote Post
hardnrg
post Sep 23 2005, 01:47 PM
Post #3


Whiny f'n Delta fan in my PCP&C 510 lol
********
Group: Reviewer
Posts: 15,693
Joined: 21-April 04
From: Manchester, UK
Member No.: 9,702



tables give you ultimate control imo... nested tables... millions of tables like a fractal made up of tables... that's what you want lol...

i've never got anything else to keep the layout exactly right when extending AND reducing beyond/below the intended viewing size with anything else apart from tables...

tables... and image slicing... smile.gif


--------------------
( How To Ask A Question ) · ( OCC F@H Sigpics ) · ( OCC Gaming ) · ( OCC Rules )
Opteron 170 (naked) @ 10x260=2600 · Thermalright Ultra 120 (lapped) · 2x 1GB G.Skill HZ PC4000 @ 260, 3-4-4-8-1T
HD4850 512MB (Arctic Cooling Accelero S1 rev2) · DFI NF4 Infinity · Audigy 2 ZS (Hotrodded) · PCP&C 510 SLI/Express

EeePC 1000H @ 12x167=2008 · 1x 2GB Corsair VS PC2-5300 · GMA 950 @ 400 MHz · Gigabyte Aircruiser N300 GN-WI06N
( Socket 775 OC Competition ) · ( Socket 775 OC Database ) · ( USB Bootdrive Guide ) · ( Modding & Computer Stores List )
Go to the top of the page
 
+Quote Post
Vasto
post Sep 24 2005, 11:34 AM
Post #4


Sexiest OCC Member
****
Group: Members
Posts: 1,752
Joined: 13-October 04
From: USA
Member No.: 12,885



I use tables, mostly because I never cared for the restrictions of div.


--------------------
IPB Image
Go to the top of the page
 
+Quote Post
94Camaro
post Sep 24 2005, 11:42 AM
Post #5


Veritas. Aequitas.
***
Group: Members
Posts: 795
Joined: 27-October 04
Member No.: 13,217



Well I don't code websites, but I'll throw in my opinion.
I absolutely hate sites that are coded so they are always 800x600 or something no matter the size of the window. I run a much higher res, so these sites are ridiculously tiny! I guess my vote is for tables as well.


--------------------
Like photography? Check out my work by clicking the image below.


Intel Core 2 Duo T7200 -- ATI Mobility Radeon X1400 -- 1GB PC5400 -- Win XP MCE
Mathematics is the language with which God has written the universe. - Galileo Galilei
Go to the top of the page
 
+Quote Post
kanbeki
post Sep 24 2005, 11:52 AM
Post #6


YOU WERE ALMOST A JILL SANDWICH!!!!
**
Group: Members
Posts: 482
Joined: 28-November 03
From: Central PA
Member No.: 7,039



Tables have had their run, div has been the new hotness for some time, plus you can layer em to get cool effects and if you're worried about resize distortion just use percentages instead of fixed pixel values


--------------------
Opteron 165 @ 2.25ghz stock volts | DFI NF4 Ultra-D | 2GB Gskill DDR500| eVGA 7800GT | Sound Blaster Live | Antec P150 | OCZ 500WSLI PSU | Logitech G5 | Logitech lx510
Go to the top of the page
 
+Quote Post
CmpFreak88
post Sep 24 2005, 12:13 PM
Post #7


WTF Mate?!
****
Group: Members
Posts: 1,012
Joined: 16-July 03
Member No.: 5,010



Hm... I haven't really looked at sites lately and I'm a loyal follower for tables. I'll have to look up Div's and see how they work, advantages and disadvantages, but I'm a table person. Yeah it may get confusing but how are you coding? For me I'll code it with a program, Evrosft 1stPage and it has a cool table feature which is really easy, then I just add comments so I know which table is what and it makes it soooooo mcuh easier. But from the above post, it looks like I need to look into Div's...


--------------------
AMD64 3500+ | MSI K8N Neo2 Platinum | Sapphire X800XT-PE
XP-120 w/Panaflo | 2 X 36.7Gb Raptors in Raid0 | Audigy 2 ZS w/Logitech Z-640's
1Gb G.Skill DDR550 | Fortron Source 500W PS
-----------------------------------------------------------------------------
17" Macbook Pro | Intel Core 2 Duo 2.4Ghz | 4Gb DDR2 Memory | NVidia 8600M GT
Go to the top of the page
 
+Quote Post
BiPolar
post Sep 24 2005, 02:22 PM
Post #8


Mature Cheese
****
Group: Members
Posts: 1,197
Joined: 29-January 04
Member No.: 8,130



i'm loyal to tables mostly because i understand them. however, I know that div's are the new 'thing' and if you can get htem to do what you want, use them.


--------------------
amd xp2600+ m (11.5@185) * 1gb Kinston pc3200 Valueram
Abit NF7-S rev.2 * Antec True 430
thermaltake alx-800 w/ panaflo 80mm M1a fan
msi geforce ti4200
Seagate 160 SATA * Maxtor 80 IDE
Go to the top of the page
 
+Quote Post
d3bruts1d
post Sep 26 2005, 08:53 AM
Post #9


 Mac User
******
Group: Forum Admins
Posts: 9,037
Joined: 4-April 02
From: Knoxville, TN
Member No.: 717



Tables are the easy route to go, that's for damn sure. I've been playing around with div tags and CSS formatting for the last couple of days, and things are finally starting to take shape (pardon teh pun).

I'm still not 100% convinced I'll use divs. Going to have to do a bit of cross browser testing. IE5 tends to screw everything up. laugh.gif


--------------------
d 3 b r u t s 1 d

d3bruts1d.com | Profiles: XBL :: FLX :: TW :: FB :: SV
More OCC: | XB360 :: X :: S :: Tw :: Pl :: FB :: L.fm :: W :: F@H
Go to the top of the page
 
+Quote Post
ShadowPaktu
post Oct 17 2005, 05:48 AM
Post #10


I'm human damnit!!!
***
Group: Members
Posts: 634
Joined: 8-August 03
Member No.: 5,455



Use divs.

For starters.

Tables were never designed to be used for a method of design, they were designed for statisticle data, usually out of a database.

Tabels are inflexible, in the end of the day, require more coding and tags than the DIV and SPAN tags.

The problem you mentioned with DIV's and resizing windows is in my opinion nonsence. Of all the sites i have designed (for my own personnal use and now in my job for the Police Force's Intranet) I scale my layouts so they fit nicley, no matter what the window width is.

I believe dropping tables for DIV's would be the best thing you do for website design and layout. There are not really many major cross browser issues to do with using DIV's for design, apart from a few missfitts here and there. As i have moved on to Possitional CSS, you will be amazed at what can be done with this technology, and how fluid it has become. There are thing i do in PCCS that are impossible to do with the use of tables alone.

If you ever do decide to go with PCSS, there is one word of advise i shall give: Make sure you plan your stylesheet and tags at the start of your project. It is a major factor and it wil ltake time, BUT, that said, when you do get your style sheets complete, it is just a matter of knocking out pages with ease.

Im not the best of speakers (as you may tell), and im not that great at getting my point across about one method or another, but ill put it this way: Using DIV's can be MORE flexible than using tables with minimal PCCS experiance.



--------------------
Motherboard: Abit NF7 - S
Processor: AMD Athlon XP 3000+
Memory: 512Mb PC3200@400Mhz (Dual channel, 2x256)
Graphics: 6800GT MWUAHUHAHA!!
Sound: Creative Sound Blaster Audigy 2
Storage: Two 160Gb S-ATA HDD's in RAID 0
Power: Antec Truepower 550W
Case: Thermaltake Xasier III7 Silent TT Case fans,
Go to the top of the page
 
+Quote Post
Puck
post Oct 17 2005, 06:10 AM
Post #11


I'm your Huckleberry
*****
Group: Members
Posts: 2,554
Joined: 8-January 05
Member No.: 14,548



Nested tables and gutters are the way to go IMO. Hold together real nice when using percents if the window is resized.


--------------------
*Win7 PRO x64 - Xeon E3110 @ 4.3ghz 24/7 - Asus Maximus Formula - 2GB G.Skill DDR2-1066 - Radeon 4870X2 2GB - OCZ EliteXstream 800w -
AC Eheim 1030(1320Lp/H!!)+Enzo Saph revA+SwiftyMCP320+3X Delta 142CFMs+DD 5 1/4 dual bay res*

QUOTE (Nerm @ Jul 15 2005, 07:56 AM)
Wow, puck just kinda summed that one up for most of us lol. I agree with puck. :)
QUOTE (Verran @ Jul 27 2005, 07:38 PM)
Man Puck... I couldn't have said it better myself!
"My other rig is a z28"
"My other other rig is a ZX6R"
Go to the top of the page
 
+Quote Post
DrAwesomePhD
post Oct 27 2005, 12:02 PM
Post #12


Member
**
Group: Members
Posts: 409
Joined: 13-May 04
From: behind you!
Member No.: 10,092



Use divisions!!!

The whole movement towards CSS is a positive one , dont get caught behind!!

It loads a whole lot faster, and is a lot more dynamic... theres a few website but i cant remember them... anyway, there was this guy who convinced windows to change over to CSS too, and he had this elaborate presentation, it explained how the loading times a much smaller, the HTML code is much smaller (if i remember it was like 28kb vs. 50kb) and there are a lot less of everything-bad and a lot more of everything-good.

CSS is the way to go, down with tables....

and on the whole resizing of divs... you can define the width of them in terms of pixels... width: 200px... and then you cant resize it it will ALWAYS be 200px wide.

Or, if you want, width: 80%.. a percentage.. its all good. divs = better!

As far as IE messing stuff up, i think theres an error with the "margin" tag in IE.. it interperates the "margin" to be a margin on the INSIDE of the picture, while firefox and everything else interperts it as being a margin on the OUTSIDE of the picture, so if you have a 200x200 picture with margin 10, its 190x190 in IE and 200x200 with a border of width 10 in firefox/opera... (i think , im not too sure about this, just something i heard).

Other than that, i think all CSS works fine with cross-browser.

This post has been edited by DrAwesomePhD: Oct 27 2005, 12:08 PM


--------------------
Currently running: 3.6ghz CPU/961mhz FSB/45.0C load
SilenX 450W
OCZ 533mhz 1gb 2x512 RAM running @ 1:1
Abit IC7-MAX3
Radeon X800 Pro 256mb @ 513/505 core/ram
WD Raptor 76gb x2 in RAID 0
500gb of additional storage
Watercooling
Use Firefox
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >
Reply to this topicStart new topic


 



RSS Lo-Fi Version Time is now: 7th November 2009 - 12:44 PM
© 2001- Overclockers Club ® Privacy Policy