HighDots Forums  

Div at the bottom of the screen?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Div at the bottom of the screen? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gnolen
 
Posts: n/a

Default Div at the bottom of the screen? - 04-06-2005 , 11:47 AM






Hi,

I want to put a div at the bottom of the screen. Not a fixed div but
relative to the height of the overal design and screen size. And it is
outside the content div.

My thought was simply like this(with the html, body set to 100%):

<div id="container">
<div id="spread"><!-- --></div>
<div id="bottom">Some content</div>
</div>

#container {height: 100%;}
#spread {height: 90%;}
#container {height: 10%;}

But this is not realistic and doesn't work.

I would you guys do this simple task?

Thankful for any help I could get on this matter.

Greetings from Gnolen

Reply With Quote
  #2  
Old   
Nathan
 
Posts: n/a

Default Re: Div at the bottom of the screen? - 04-06-2005 , 12:20 PM






like position: relative; bottom: 0px; ?

if it is indeed outside the main content container, it should attach
relative to the bottom of it's parent container, IE: body.


Reply With Quote
  #3  
Old   
Gnolen
 
Posts: n/a

Default Re: Div at the bottom of the screen? - 04-06-2005 , 12:41 PM



Nathan wrote:
Quote:
like position: relative; bottom: 0px; ?

if it is indeed outside the main content container, it should attach
relative to the bottom of it's parent container, IE: body.

Thanks for your answer! Yeah I tried to put in on the bottom of the
content container but the div should be on the left and a bit up.

So I do a postition top and left to get it in place. But now the content
container still have the space left over for the divs I just moved! So
there is now a not needed(or wanted) space between the content and bottom.

Is there a way to take that away??

If I float the divs on the left of the content. It get's to the top left
of the content. So I can't do that either!

/ Gnolen


Reply With Quote
Reply




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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.