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 Mark Forums Read
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 07-06-2006, 11:24 PM   #1
iwantchixx
Too lazy to set a custom title
 
iwantchixx's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: The Boonies
Posts: 12,860
Quick: Silly HTML problem needs solving.

I'll try to explain this the best I can.

In this example of code We have two rows in the second column:
Code:
<table width="500">
	<tr>
		<td rowspan="2">1</td>
		<td>2</td>
	</tr>
	<tr>
		<td>3</td>
	</tr>
</table>
How do I keep the top of the 3rd cell snug under the content contained withing the 2nd cell when the content of cell 2 is stretched beyond the height of cells 2 and 3 combined?

I have to do this without setting cell heights. My page code on the project I am working on is much more complex than thios but this is the easiest way to get my question across.

Thanks muchly!
iwantchixx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-06-2006, 11:28 PM   #2
VIPimp
Marina WILL have my babies!
 
Industry Role:
Join Date: May 2003
Posts: 9,234
td valign="top" in the 3rd?
VIPimp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-06-2006, 11:30 PM   #3
CamsLord
Confirmed User
 
Join Date: Jun 2006
Posts: 3,663
wat he said
__________________
sig for sale - pornpicz(at)gmail.com
CamsLord is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-06-2006, 11:31 PM   #4
iwantchixx
Too lazy to set a custom title
 
iwantchixx's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: The Boonies
Posts: 12,860
I use that to align the content of the 3rd cell to the top of the 3rd cell. it doesnt seem to push the top of the 3rd cell snug against the bottom of the 2nd cell's content
iwantchixx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-06-2006, 11:34 PM   #5
VIPimp
Marina WILL have my babies!
 
Industry Role:
Join Date: May 2003
Posts: 9,234
Quote:
Originally Posted by iwantchixx
I use that to align the content of the 3rd cell to the top of the 3rd cell. it doesnt seem to push the top of the 3rd cell snug against the bottom of the 2nd cell's content
how about adding cellspacing tag?

table width="500" cellspacing="0"

or

table width="500" cellspacing="0" cellpadding="0" border="0"
VIPimp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-06-2006, 11:35 PM   #6
iwantchixx
Too lazy to set a custom title
 
iwantchixx's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: The Boonies
Posts: 12,860
nope, that just makes the gap between cells dissapear.

I'm looking into seeing if CSS can solve this but I don't see anything that would work.
iwantchixx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-06-2006, 11:41 PM   #7
viki
Confirmed User
 
viki's Avatar
 
Join Date: Jan 2005
Posts: 2,640
I think I see what you're saying. When cell 1 has lengthy content, it splits up the height of cells 2 and 3 and half causing a gap. If that's correct, would removing cell 3 entirely and putting a table within cell 2 work? It would look like this:

Code:
<table>
<tr><td>1</td>
<td>
content of cell 2

<table><tr><td>table replacing cell 3</td></tr></table>

</td></tr></table>
__________________

viki [at] realsexcash [dot] com
228 263 454
viki is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-06-2006, 11:42 PM   #8
iwantchixx
Too lazy to set a custom title
 
iwantchixx's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: The Boonies
Posts: 12,860
that MIGHT work, I'll try it.

The cell is colored with no padding or spacing atributes on that table so I dont know if it will lign up right.
iwantchixx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-06-2006, 11:43 PM   #9
ssp
Confirmed User
 
Join Date: Jan 2005
Location: United Kingdom
Posts: 7,990
First of all, your code is wrong.

The bottom row spans over two columns so it should be like this.

Code:
<table width="500">
	<tr>
		<td>1</td>
		<td>2</td>
	</tr>
	<tr>
		<td colspan="2">3</td>
	</tr>
</table>
Second... try picking up an HTML manual somewhere? Christ, you've been posting since 2002?!
ssp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-06-2006, 11:49 PM   #10
ssp
Confirmed User
 
Join Date: Jan 2005
Location: United Kingdom
Posts: 7,990
PS.. I just read your post again, it's 7am here so if I misunderstood, my apologies in advance.
ssp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-06-2006, 11:53 PM   #11
viki
Confirmed User
 
viki's Avatar
 
Join Date: Jan 2005
Posts: 2,640
Quote:
Originally Posted by iwantchixx
that MIGHT work, I'll try it.

The cell is colored with no padding or spacing atributes on that table so I dont know if it will lign up right.
If you're worried about the small gap that the inner table would make on the left and the right sides, here's what you can do for that inner table:

Code:
<table>
<tr><td>1</td>
<td>
content of cell 2

<table CLASS=WHATEVER><tr><td>table replacing cell 3</td></tr></table>

</td></tr></table>
Code:
<style>
table.whatever {margin-left: 0px; margin-right: 0px;}
</style>
Sorry if I'm horribly misunderstanding all of this but in my head it should work.
__________________

viki [at] realsexcash [dot] com
228 263 454
viki is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-06-2006, 11:53 PM   #12
iwantchixx
Too lazy to set a custom title
 
iwantchixx's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: The Boonies
Posts: 12,860
Thank you very much. While using that method and using cellspacing/padding I was able to make it fit and work for the tast at hand.
iwantchixx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-06-2006, 11:57 PM   #13
iwantchixx
Too lazy to set a custom title
 
iwantchixx's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: The Boonies
Posts: 12,860
Quote:
Originally Posted by ssp
First of all, your code is wrong.

The bottom row spans over two columns so it should be like this.

Code:
<table width="500">
	<tr>
		<td>1</td>
		<td>2</td>
	</tr>
	<tr>
		<td colspan="2">3</td>
	</tr>
</table>
Second... try picking up an HTML manual somewhere? Christ, you've been posting since 2002?!

ahaha. Maybe YOU should pick up an HTML manual. You should read fully before you leave assenine comments.

no. There is NO bottom row.

it was a Left colum with a right colum. The right colum was split into two rows.



I was trying to keep the code as clean as possible without doubling up on tables but using a second table was the only solution.

Does that me me HTMl illiterate?

Last edited by iwantchixx; 07-07-2006 at 12:00 AM..
iwantchixx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-06-2006, 11:59 PM   #14
iwantchixx
Too lazy to set a custom title
 
iwantchixx's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: The Boonies
Posts: 12,860
Quote:
Originally Posted by viki
If you're worried about the small gap that the inner table would make on the left and the right sides, here's what you can do for that inner table:

Code:
<table>
<tr><td>1</td>
<td>
content of cell 2

<table CLASS=WHATEVER><tr><td>table replacing cell 3</td></tr></table>

</td></tr></table>
Code:
<style>
table.whatever {margin-left: 0px; margin-right: 0px;}
</style>
Sorry if I'm horribly misunderstanding all of this but in my head it should work.

yeah I was using CSS to begin with, had everything streamlined.. No tables at all. then realized the CSS attributes are not cross-browser compatible. Firefox REALLY fucked it up badly. It was the ordering of classes in the style sheet. One browser wants it one way, the other the other way..

Such a shame too.. my code was so damn minimal!
iwantchixx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-07-2006, 12:02 AM   #15
iwantchixx
Too lazy to set a custom title
 
iwantchixx's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: The Boonies
Posts: 12,860
Quote:
Originally Posted by ssp
PS.. I just read your post again, it's 7am here so if I misunderstood, my apologies in advance.

appologies accepted.

I was wracking my brain trying to figure out why you were being assenine, but I think I understand why you misunderstood.

So appologies back at ya!
iwantchixx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-07-2006, 12:05 AM   #16
iwantchixx
Too lazy to set a custom title
 
iwantchixx's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: The Boonies
Posts: 12,860
Ah fuck sakes.

Ok, it's all looking good, but in fuckfox it doesnt allow the table replacing cell 3 to stretch the entire length of cell 2 like I wanted it to even with height="100%" on the replacement table as all as the cell in the replacement table.. IE looks perfect.
iwantchixx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-07-2006, 12:13 AM   #17
Nookster
Confirmed IT Professional
 
Industry Role:
Join Date: Nov 2005
Location: Hollywood, CA
Posts: 3,744
My recommendation: Learn how to properly use span and div tags and drop your table usage alltogether.
Nookster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-07-2006, 12:17 AM   #18
iwantchixx
Too lazy to set a custom title
 
iwantchixx's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: The Boonies
Posts: 12,860
GOT IT!

Stupid me forgot to remove a tag.
iwantchixx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-07-2006, 12:19 AM   #19
iwantchixx
Too lazy to set a custom title
 
iwantchixx's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: The Boonies
Posts: 12,860
Quote:
Originally Posted by Nookster
My recommendation: Learn how to properly use span and div tags and drop your table usage alltogether.
That's my eventual goal.

Unfortunately Opera and Firefox ignore a lot of div alignment specifications when used with classes.

I have to learn a proper workaround.

been reading up a lot on it, also considering purchasing a CSS guide book.
iwantchixx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-07-2006, 12:54 AM   #20
Bro Media - BANNED FOR LIFE
MOBILE PORN: IMOBILEPORN
 
Join Date: Jan 2004
Location: Tinseltown NL
Posts: 16,502
Quote:
Originally Posted by iwantchixx
That's my eventual goal.

Unfortunately Opera and Firefox ignore a lot of div alignment specifications when used with classes.

I have to learn a proper workaround.

been reading up a lot on it, also considering purchasing a CSS guide book.
firefox and opera render to compliance, ie doesn't so if it doesn't work in ff or opera, then your code is shit
Bro Media - BANNED FOR LIFE 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
Thread Tools



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.