Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-06-2011, 07:39 AM   #1
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
<Table>,<div>,<p>,<li> ?

What is best when it comes to usability and speed on site to create tables and anything similar to tables?
Since you can use 4 different ways to accomplish same thing.When it comes to classic html tables code,that is easiest to create and you can also add css tag which allows instant changes like color,size and similar.
But some people claim how it's better to use div because then site loading is faster since size of code is smaller.
Is it really necessary to use div code?
Or maybe we can use simple p or li code to make what we want?
For example,what i want to do,is four pictures(thumbs)in row,to have a description text under each picture,and to be able to change instantly alignment,left/center/right.
Another thing which should be instantly changed when needed,is to be able to change number of pictures without having a layout corrupted ,so you simply change one number instead changing entire code to get desired result.

Which method do you use ?
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-06-2011, 11:09 AM   #2
Vendzilla
Biker Gnome
 
Vendzilla's Avatar
 
Industry Role:
Join Date: Mar 2004
Location: cell#324
Posts: 23,200
Try them all and do a speed test on the page. Tables are the easiest I think but with faster and faster broadband does it really matter?
__________________
Carbon is not the problem, it makes up 0.041% of our atmosphere , 95% of that is from Volcanos and decomposing plants and stuff. So people in the US are responsible for 13% of the carbon in the atmosphere which 95% is not from Humans, like cars and trucks and stuff and they want to spend trillions to fix it while Solar Panel plants are powered by coal plants
think about that
Vendzilla is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-06-2011, 11:23 AM   #3
Sid70
Downshifter
 
Sid70's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Road trip
Posts: 16,413
since when internet came back to 33600?
__________________
Русня, идите нахуй!
Sid70 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-06-2011, 11:24 AM   #4
WarChild
Let slip the dogs of war.
 
WarChild's Avatar
 
Industry Role:
Join Date: Jan 2003
Location: Bermuda
Posts: 17,263
Tables are appropraite to use if you need to display data in a table format. Don't use the formatting otherwise. Simple.
__________________
.
WarChild is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-06-2011, 11:25 AM   #5
FlexxAeon
Confirmed User
 
FlexxAeon's Avatar
 
Industry Role:
Join Date: May 2003
Posts: 3,765
go with div and p. tables are not as "easy" as some think, especially with complicated layouts and alignments all the <tr><td> span colspan rowspan blah blah blah blah blah gets ugly and confusing.
__________________
flexx [dot] aeon [at] gmail
FlexxAeon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-06-2011, 11:26 AM   #6
martinsc
Too lazy to set a custom title
 
Industry Role:
Join Date: Jun 2005
Location: 127.0.0.1
Posts: 27,047
tables for data, divs for design, p for paragraphs of text and li for list items....
__________________
Make Money
martinsc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-06-2011, 11:26 AM   #7
RyuLion
 
RyuLion's Avatar
 
Industry Role:
Join Date: Mar 2003
Location: San Diego
Posts: 32,223
Quote:
Originally Posted by FlexxAeon View Post
go with div and p. tables are not as "easy" as some think, especially with complicated layouts and alignments all the <tr><td> span colspan rowspan blah blah blah blah blah gets ugly and confusing.
__________________

Adult Biz Consultant A tech head since 1995
RyuLion is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-06-2011, 02:15 PM   #8
Serge Litehead
Confirmed User
 
Serge Litehead's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Behind the scenes
Posts: 5,190
Use tables ONLY for tabular data, meaning one row equals one record set.

If you're using multiple record sets per row/s it becomes real nightmare in maintaining and generation of table's rows and cells in your application, you will have to enable processes to count how many rows and cells there are, put some obscure conditions and the whole thing comes out not being elegantly implemented. It is simply not logical and not the best solution to use tables in such way. Also table is not rendered in a browser until it is fully loaded.

For the rows of thumbs/titles/etc which are basically separate sets of records its best to stack them in to rows with DIV containers and having content positioned appropriately within them through the use of css classes
__________________

Last edited by Serge Litehead; 03-06-2011 at 02:22 PM..
Serge Litehead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.