Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
split content alignment top and bottom
Old 12-11-2006, 01:12 AM split content alignment top and bottom
ChipJohns's Avatar
I don't know! Do you?

Posts: 488
Name: Chip Johns
Location: Savannah Georgia
Trades: 0
Hi all,

Need a little help.

Can't figure out the best way to do this. Well, actually, I haven't figure anyway to make it work.

I want the h1 and p elements to remain at the top of the table cell
while the div will align with the bottom of the table cell

HTML Code:
<table width="200" height="400" border="1">
<tr><td align="left" valign="top">

<h1>Content</h1>
<p>Content</p>

<div id="bottom">content</div>

</td></tr></table>
I know, I know, tables! Not my design. I am adding something to an existing page. eCommerce site that is build with asp. So much coding that it would not be cost effect to change this. I must keep the layout as it is.

I was asked if I can get the Thawte Security info to align with the bottom of the table cell. there is, of course, other info in the cell.

Any help would be appreciated.

Thanks all.

~Chip
ChipJohns is offline
Reply With Quote
View Public Profile Visit ChipJohns's homepage!
 
 
Register now for full access!
Old 12-11-2006, 05:38 PM Re: split content alignment top and bottom
blackhawkpowers's Avatar
Ultra Talker

Posts: 313
Name: Dustin
Location: GA
Trades: 0
give this a shot
HTML Code:
<table width="200" height="400" border="1">
<tr><td align="left" valign="top">

<h1>Content</h1>
<p>Content</p>

<div id="bottom" style="vertical-align: bottom;">content</div>

</td></tr></table>
</SPAN>

hope it works for ya
__________________
A patch is a piece of software which replaces old bugs with new bugs.

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
blackhawkpowers is offline
Reply With Quote
View Public Profile Visit blackhawkpowers's homepage!
 
Old 12-11-2006, 06:56 PM Re: split content alignment top and bottom
ChipJohns's Avatar
I don't know! Do you?

Posts: 488
Name: Chip Johns
Location: Savannah Georgia
Trades: 0
Quote:
Originally Posted by blackhawkpowers View Post
give this a shot
HTML Code:
<table width="200" height="400" border="1">
<tr><td align="left" valign="top">

<h1>Content</h1>
<p>Content</p>

<div id="bottom" style="vertical-align: bottom;">content</div>

</td></tr></table>
</SPAN>

hope it works for ya
Thanks Dustin,

Logic almost tells you that would to it. What this actually does is align the contents within the div to the bottom. It doesn't have any enfluence on the position of the div itself.

Thanks though. I appreciate it.

~Chip
ChipJohns is offline
Reply With Quote
View Public Profile Visit ChipJohns's homepage!
 
Old 12-11-2006, 07:16 PM Re: split content alignment top and bottom
ChipJohns's Avatar
I don't know! Do you?

Posts: 488
Name: Chip Johns
Location: Savannah Georgia
Trades: 0
Dustin,

I see you're here in Savannah..?? Which airfiled do you work at?

I live over on Wilmington Island, just east of Savannah.

My wife works out at FlightSafety..
ChipJohns is offline
Reply With Quote
View Public Profile Visit ChipJohns's homepage!
 
Old 12-11-2006, 07:24 PM Re: split content alignment top and bottom
blackhawkpowers's Avatar
Ultra Talker

Posts: 313
Name: Dustin
Location: GA
Trades: 0
Well I tested this out today and it works for what you want although I am sure there is a better way to do it. Since your table has a fixed width it shouldn't be to big of an issue using this way however I'm sure if were not a fixed height there could be issues maybe someone else can post a better answer but until then...... here you go

HTML Code:
<html><body>
<table width="200" height="400" border="1">
<tr><td align="left" valign="top">
<h1>Content</h1>
<p>Content</p>
<div id="bottom" style="position: relative; bottom: -280px;">content </div>
</td></tr></table>
</body></html>
editing post just saw that you made that post back to me I'm at HAAF and very familiar with Wimington my best friend lives out there.
__________________
A patch is a piece of software which replaces old bugs with new bugs.

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Last edited by blackhawkpowers; 12-11-2006 at 07:25 PM..
blackhawkpowers is offline
Reply With Quote
View Public Profile Visit blackhawkpowers's homepage!
 
Reply     « Reply to split content alignment top and bottom
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15225 seconds with 12 queries