MPGH - MultiPlayer Game Hacking


Go Back   MPGH - MultiPlayer Game Hacking > Programming > Other Programming > PHP/HTML

Reply
 
Thread Tools Display Modes
Old 08-26-2009   #1
Upcoming MPGHiean
 
GG2GG's Avatar
 
Join Date: Mar 2008
Location: United Kingdom
Gender: male
Posts: 3,330
Thanks: 4,294,967,293
Thanked 277 Times in 153 Posts
My Mood: Blah
GG2GG is an unknown quantity at this point
Credits: 15,087, Level: 24
Credits: 15,087, Level: 24 Credits: 15,087, Level: 24 Credits: 15,087, Level: 24
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Send a message via ICQ to GG2GG Send a message via AIM to GG2GG Send a message via MSN to GG2GG Send a message via Yahoo to GG2GG Send a message via Skype™ to GG2GG
div vs table layouts

tables

pros
------
fast and easy
the standard output for sliced image maps in photoshop
cons
------
slow
looks messy, thus slowing your development time
from html 3.2 or some shit ¬_¬

<div>

pros
-----
intergrated with css
faster than tables
easyer to navigate and read when returning to change code

cons
-----
may require a brain


ive personal decided to take the time to expand my knowllage in <div> tags and general css however this may not be the best option.

id like to know some other views more importantly compare the choice to there intellegence ¬_¬
__________________
GG2GG is offline   Reply With Quote
Sponsored Links
Old 08-26-2009   #2
Prepare for trouble
Middleman
GFX Team
 
Czar's Avatar
 
Join Date: Aug 2008
Gender: male
Posts: 10,102
Thanks: 360
Thanked 744 Times in 467 Posts
My Mood: Cheerful
Czar has a spectacular aura aboutCzar has a spectacular aura about
Credits: 33,701, Level: 31
Credits: 33,701, Level: 31 Credits: 33,701, Level: 31 Credits: 33,701, Level: 31
Activity: 9%
Activity: 9% Activity: 9% Activity: 9%
Send a message via MSN to Czar
Div for the win.
Ohai again Greg.
Czar is offline   Reply With Quote
Old 08-26-2009   #3
Upcoming MPGHiean
Threadstarter
 
GG2GG's Avatar
 
Join Date: Mar 2008
Location: United Kingdom
Gender: male
Posts: 3,330
Thanks: 4,294,967,293
Thanked 277 Times in 153 Posts
My Mood: Blah
GG2GG is an unknown quantity at this point
Credits: 15,087, Level: 24
Credits: 15,087, Level: 24 Credits: 15,087, Level: 24 Credits: 15,087, Level: 24
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Send a message via ICQ to GG2GG Send a message via AIM to GG2GG Send a message via MSN to GG2GG Send a message via Yahoo to GG2GG Send a message via Skype™ to GG2GG
Quote:
Originally Posted by Czar View Post
Div for the win.
Ohai again Greg.
Stfu div for the win

how about iframe vs framesets?
__________________
GG2GG is offline   Reply With Quote
Old 08-26-2009   #4
Prepare for trouble
Middleman
GFX Team
 
Czar's Avatar
 
Join Date: Aug 2008
Gender: male
Posts: 10,102
Thanks: 360
Thanked 744 Times in 467 Posts
My Mood: Cheerful
Czar has a spectacular aura aboutCzar has a spectacular aura about
Credits: 33,701, Level: 31
Credits: 33,701, Level: 31 Credits: 33,701, Level: 31 Credits: 33,701, Level: 31
Activity: 9%
Activity: 9% Activity: 9% Activity: 9%
Send a message via MSN to Czar
Quote:
Originally Posted by English View Post
Stfu div for the win

how about iframe vs framesets?
Yay for Iframe being retarded and easy for lazy ppls. =D
Czar is offline   Reply With Quote
Old 09-22-2009   #5
i can design a nation
 
iHolyElement's Avatar
 
Join Date: Aug 2009
Location: i can design a nation.
Gender: male
Posts: 843
Thanks: 0
Thanked 36 Times in 31 Posts
iHolyElement is on a distinguished road
Quote:
Originally Posted by English View Post
iframe vs framesets?
dont be retarded.
As a web&graphic designer i would recommend DIV instead of TABLE.
im not going to waste my time getting into it, but trust me.
__________________
iHolyElement is offline   Reply With Quote
Old 07-18-2010   #6
 
Greg's Avatar
 
Join Date: Oct 2006
Gender: male
Posts: 925
Thanks: 0
Thanked 42 Times in 31 Posts
My Mood: Blah
Greg is an unknown quantity at this point
Credits: 6,882, Level: 19
Credits: 6,882, Level: 19 Credits: 6,882, Level: 19 Credits: 6,882, Level: 19
Activity: 2%
Activity: 2% Activity: 2% Activity: 2%
Quote:
Originally Posted by iHolyElement View Post
dont be retarded.
As a web&graphic designer i would recommend DIV instead of TABLE.
im not going to waste my time getting into it, but trust me.
necro, i was telling czar to stfu, only time ive used tables is when taking output from photoshop
__________________

Quote:
Originally Posted by Greg;
If you are the flame you can't be burned.
Greg is offline   Reply With Quote
Old 07-23-2010   #7
Dual-Keyboard Member
 
BloodSkin's Avatar
 
Join Date: Jun 2010
Location: Columbus, OH
Gender: male
Posts: 331
Thanks: 31
Thanked 40 Times in 19 Posts
BloodSkin is on a distinguished road
Credits: 1,530, Level: 11
Credits: 1,530, Level: 11 Credits: 1,530, Level: 11 Credits: 1,530, Level: 11
Activity: 2%
Activity: 2% Activity: 2% Activity: 2%
tables are good for single file sites and simplicity as well as stuff like schedules, divs are good for fine tuning and absolute positioning.
__________________

:::FREE VIP, IMAGE HOSTING, AND VIRUS SCANS:::





Cost to Renew Hosting: $239.40 USD
Renewal Date: December 03, 2010
BloodSkin is offline   Reply With Quote
Old 07-29-2010   #8
Banned
 
Calculating Infinity's Avatar
 
Join Date: Jul 2010
Gender: male
Posts: 70
Thanks: 0
Thanked 1 Time in 1 Post
Calculating Infinity is an unknown quantity at this point
Credits: 285, Level: 6
Credits: 285, Level: 6 Credits: 285, Level: 6 Credits: 285, Level: 6
Activity: 2%
Activity: 2% Activity: 2% Activity: 2%
Quote:
Originally Posted by BloodSkin View Post
tables are good for single file sites and simplicity as well as stuff like schedules, divs are good for fine tuning and absolute positioning.
tables suck all the time, there messy and gay.

plus this was more to give information to those who dont know how to use either, so they know what they should learn.
Calculating Infinity is offline   Reply With Quote
Old 07-31-2010   #9
VIP Support
 
m³'s Avatar
 
Join Date: Oct 2007
Location: Liquid Generator
Gender: male
Posts: 6,719
Thanks: 2
Thanked 1,006 Times in 533 Posts
My Mood: Fine
m³ will become famous soon enough
Credits: 20,503, Level: 27
Credits: 20,503, Level: 27 Credits: 20,503, Level: 27 Credits: 20,503, Level: 27
Activity: 49%
Activity: 49% Activity: 49% Activity: 49%
Send a message via ICQ to m³ Send a message via AIM to m³ Send a message via MSN to m³
Quote:
Originally Posted by Calculating Infinity View Post
tables suck all the time, there messy and gay.

plus this was more to give information to those who dont know how to use either, so they know what they should learn.
Partially true. Tables are still widely in use for emails though, as many popular clients can't render div layouts all that well (that also includes Outlook).

Other than that yes, divs are superior and it's easy to make a table-like layout. Now, if we want to make it similar in structure (talking about the basic structure here):

HTML Code:
<table>
	<tr>
		<td></td>
		<td></td>
		<td></td>
	</tr>
	<tr>
		<td></td>
		<td></td>
		<td></td>
	</tr>
</table> 
we can make the following div layout:

HTML Code:
<div>
	<div>
		<div></div>
		<div></div>
		<div></div>
	</div>
	<div>
		<div></div>
		<div></div>
		<div></div>
	</div>
</div> 
And use some CSS:

Code:
div > div {
	overflow: auto;
}
	div > div > div {
		float: left;
		width: 33%;
	}
	div > div > div:last-child {
		width: 34%;
	}
I think that should work, sorry if I did anything wrong, I just woke up

Edit: forgot a ; in the css :S
__________________



You know I would be a good mm. You just know it.
Support me by thanking me here (yep, you gotta click "here")!


If I helped you, you better thank me and/or +rep.
Or ima go beat up lil puppies and kittens. Your choice.


Thanks for any support / rep / thanks!


Last edited by m³; 07-31-2010 at 01:44 AM..
m³ is offline   Reply With Quote
Old 08-01-2010   #10
 
Greg's Avatar
 
Join Date: Oct 2006
Gender: male
Posts: 925
Thanks: 0
Thanked 42 Times in 31 Posts
My Mood: Blah
Greg is an unknown quantity at this point
Credits: 6,882, Level: 19
Credits: 6,882, Level: 19 Credits: 6,882, Level: 19 Credits: 6,882, Level: 19
Activity: 2%
Activity: 2% Activity: 2% Activity: 2%
Quote:
Originally Posted by m3 View Post
Partially true. Tables are still widely in use for emails though, as many popular clients can't render div layouts all that well (that also includes Outlook).

Other than that yes, divs are superior and it's easy to make a table-like layout. Now, if we want to make it similar in structure (talking about the basic structure here):

HTML Code:
<table>
	<tr>
		<td></td>
		<td></td>
		<td></td>
	</tr>
	<tr>
		<td></td>
		<td></td>
		<td></td>
	</tr>
</table> 
we can make the following div layout:

HTML Code:
<div>
	<div>
		<div></div>
		<div></div>
		<div></div>
	</div>
	<div>
		<div></div>
		<div></div>
		<div></div>
	</div>
</div> 
And use some CSS:

Code:
div > div {
	overflow: auto;
}
	div > div > div {
		float: left;
		width: 33%;
	}
	div > div > div:last-child {
		width: 34%;
	}
I think that should work, sorry if I did anything wrong, I just woke up

Edit: forgot a ; in the css :S
shaddap

anyway bitch git on my dev team
__________________

Quote:
Originally Posted by Greg;
If you are the flame you can't be burned.
Greg is offline   Reply With Quote
Reply
  

Bookmarks

Tags
div, layouts, table

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump


All times are GMT -5. The time now is 06:11 PM.

no new posts