Any way to have something at the bottom of the page regardless of window sizing?

liunx

Guest
I have a line of text I would like to display at the bottom of the page regardless of the vertical sizing of the window. Anyway to do this? Thanks.<!--content-->Someone asked a similar question and it turned out that he wanted it at the bottom of the page, not the window. Which do you really want? bottom of the web page, or bottom of the viewing area (window)?<!--content-->Originally posted by gil davis <br />
Someone asked a similar question and it turned out that he wanted it at the bottom of the page, not the window. Which do you really want? bottom of the web page, or bottom of the viewing area (window)? <br />
<br />
Ah,ok. I mean the viewing area.<!--content-->If you just want it at the bottom of the window, this should work for ya:<br />
<br />
<style type="text/css"><br />
#footer {<br />
position:absolute;<br />
bottom:0px;<br />
top:auto;<br />
left:0px;<br />
display:block;<br />
width:100%;<br />
background-color:#a3a3a3;<br />
border-top:2px solid #000;<br />
margin:0;<br />
}<br />
</style><!--content-->Originally posted by Paul Jr <br />
If you just want it at the bottom of the window, this should work for ya:<br />
<br />
<style type="text/css"><br />
#footer {<br />
position:absolute;<br />
bottom:0px;<br />
top:auto;<br />
left:0px;<br />
display:block;<br />
width:100%;<br />
background-color:#a3a3a3;<br />
border-top:2px solid #000;<br />
margin:0;<br />
}<br />
</style><br />
<br />
<br />
You'll have to forgive my ignorance, I havent done the CSS tutorial over at W3 yet. Would this go in the header and then be "called" by using #footer in the body? What is the proper way to call it? <br />
Soon I won't ask such dumb questions. Thanks.<!--content-->#This goes inbetween the "head" tags<br />
<style type="text/css"><br />
#footer {<br />
position:absolute;<br />
bottom:0px;<br />
top:auto;<br />
left:0px;<br />
display:block;<br />
width:100%;<br />
background-color:#a3a3a3;<br />
border-top:2px solid #000;<br />
margin:0;<br />
}<br />
</style><br />
<br />
#This goes in the "body" tag<br />
<div id="footer">The footer text blah blah</div><br />
<br />
Try that.<!--content-->Originally posted by Paul Jr <br />
<br />
#This goes inbetween the "head" tags<br />
<style type="text/css"><br />
#footer {<br />
position:absolute;<br />
bottom:0px;<br />
top:auto;<br />
left:0px;<br />
display:block;<br />
width:100%;<br />
background-color:#a3a3a3;<br />
border-top:2px solid #000;<br />
margin:0;<br />
}<br />
</style><br />
<br />
#This goes in the "body" tag<br />
<div id="footer">The footer text blah blah</div><br />
<br />
Try that. That worked but for whatever reason added another HR line (I already had one in there). In either case, I don't think it's gonna work with other aspects of the page. :(<!--content-->Ah, that's the top border. Here's the code that'll just put whatever you place inside it at the bottom of the page.<br />
<br />
<br />
#footer {<br />
position:absolute;<br />
bottom:0px;<br />
top:auto;<br />
left:0px;<br />
display:block;<br />
width:100%;<br />
margin:0px;<br />
}<br />
<br />
<br />
Lemme know if that works any better.<!--content-->
 
Back
Top