View Full Version : Adding space to bottom of page?
brineandpine
05-10-2010, 05:29 AM
I'm trying to add a space, perhaps 20px high, on the bottom of all my webpages, so that the content doesn't bump against the edge of the browser window. I have tried all manner of adding margins, padding, and even tried to cheat by adding a blank footer. For some reason, my content doesn't want to budge.
Can anyone take a look at this page: http://brineandpine.com/about.php
and this css: http://brineandpine.com/main.css
and tell me how best I could fix this?
Thanks so much.
djr33
05-10-2010, 07:09 AM
I'm not sure of the "best" way, but have you tried adding padding/margins to the body tag?
If not, try to enclose the entire page in a <div> and add it to that.
Perhaps the bottom of your layout is independent (such as absolute positioning) though, so that won't work.
Just a quick though to try first. (I haven't yet looked too deeply at your code.)
BuildMyWeb
05-10-2010, 08:55 PM
call me crazy, but i dont see opening and closing HTML tags?
djr33
05-11-2010, 02:16 AM
That's true. On that note, for this type of question, first validate your page including using a valid doctype. After that it will be easier to help. With messy (invalid) code it's hard to help and more work for us, in addition to simply not being valid code that may behave randomly in browsers.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.