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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Position: Relative to parent Element
Old 07-15-2005, 09:59 AM Position: Relative to parent Element
Jdawg's Avatar
Experienced Talker

Posts: 38
Location: NB, Canada
Trades: 0
Hi. I'm having some issues with a move advanced CSS feature.

What I want is for my footer DIV (#footer) to always be below my Body DIV (#body). The problem is, I don't know how to position #footer below #body because #body is always changing depending on content.

Some facts: All elements use Absolute positioning. The layout is a centered fixed design.


What I don't want is for my #footer to always be on the screen. I simply want it at the bottom of my document. Using Bottom: 0; doesn't work since this places the DIV at the bottom of the window and not the bottom of the page's content.

Plz help. Here's some code:
Code:
#body {position:absolute; background: #83BAD8; 
	border: 1px solid #0C4599; left:0px; top:311px; width:702px; height:288px;}
#footer {position: relative;  width:702px; height:53px; top: 50px; margin: 0 auto;}
Code:
<div id="body"> 
<p>text text text</p>
</div>

<div id="footer">
<p>copyright | contact us....</p>
</div>
Plz help!!!
__________________
Jdawg

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


"I know because I must know, it is my purpose" - keymaker
Jdawg is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-15-2005, 10:08 AM
Jdawg's Avatar
Experienced Talker

Posts: 38
Location: NB, Canada
Trades: 0
Ok nevermind, I figured it out.

While writting the problem I came up with an idea to Nest the #footer DIV into the #body DIV and then use a negative bottom value on the #footer to display it at the bottom of the content every time.

Now... let that be a lesson to all of you... cough cough...
__________________
Jdawg

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


"I know because I must know, it is my purpose" - keymaker
Jdawg is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Position: Relative to parent Element
 

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.16103 seconds with 12 queries