This is a discussion on Positiong a footer at the bottom of a page within the HTML, DHTML and CSS forums, part of the Programming / Scripting / Coding category; Here is my site so far: http://nanothree.net/layout/ I want to be able to have the div layer "footer" always at ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| | #1 (permalink) |
| Active Member | Here is my site so far: http://nanothree.net/layout/ I want to be able to have the div layer "footer" always at the bottom of the screen if the main content isnt big enough to push it that far, im not sure if that is clear enough or not. Also when viewed in IE there is a strange block of color on the left hand side does anyone know how to fix that? |
| | |
| | #2 (permalink) |
| Senior Member | Heres your corrected css peice, just replace this into your file. #footer{ width:600px; clear:both; background-image:url(images/index_28.gif); background-repeat:repeat-x; text-align:right; position:absolute; bottom: 0px; Although this will NOT track the bottom of the page if you scroll. If your looking to have the footer actually stay at the bottom of the page as you scroll please reply and I'll send you the code to do that. |
| | |
| | #6 (permalink) |
| Senior Member | Name this to be index.html. Rename your current index.html to main.html Code: <html> <frameset rows="*,36px" frameborder="no" border="0" bordercolor="#FFFFFF" framespacing="0" > <frame name="Main" scrolling="no" src="main.html" frameborder="no" border="0" bordercolor="#FFFFFF" NORESIZE scrolling="auto" marginheight="0" marginwidth="0" > <frame name="footer" scrolling="no" src="footer.html" frameborder="no" border="0" bordercolor="#FFFFFF" NORESIZE scrolling="auto" marginheight="0" marginwidth="0" > </frameset> </html> Code: <html>
<head>
<style type="text/css">
body
{
margin: 0px;
padding: 0px;
background-image: url(back.jpg);
background-position: center;
}
</style>
<body>
</body>
</head>
|
| | |
| | #7 (permalink) |
| Active Member | i dont really want to use frames id like to use javascript and css can you help with that? sorry for not making that clear earlier, if yopui look at the demo now, opu can see that i have been able to push the footer down but it goes too far any idea why? |
| | |
| | #8 (permalink) |
| Senior Member | Yeah, you really have alot of code there. I mean wow. Best to try and keep it simple. I suggest taking this to http://www.webdeveloper.com/forum/fo...e=30&forumid=3 Thats a great javascript coding forum. They should have your solution if I can't find it. |
| | |
| | #10 (permalink) |
| Moderator | Why not use css and do a clear:both; in the css code for the footer div? This should position the footer at the bottom of any other <div> tags above it Have a look at some example css in the source code of the pages at http://www.kinkamono.com/design/layouts/ Craig |
| | |
| Tags |
| bottom, footer, page, positiong |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Footer text link available, just $10.95/mo, 2500+ pages | infoway | Buy and Sell Ad Space | 0 | 29-03-2006 09:46 |
| Centering a page | FrozenDice | Website Development Forum | 2 | 15-07-2005 17:42 |
| Need help to fox a few bugs with my page | vegancoder | HTML, DHTML and CSS | 1 | 25-06-2005 13:48 |
| Google ad's style space at top & bottom of my site | robertall | Buy and Sell Ad Space | 6 | 05-04-2005 11:58 |
| Photo Page | woodflooristcom | Search Engine Optimisation (SEO) | 2 | 24-02-2005 17:36 |