designedfree4u Posted October 17, 2009 Share Posted October 17, 2009 Any idea why my web page height is so long? http://www.ratethepresidents.com/Abraham-Lincoln.php Thanks, Quote Link to comment Share on other sites More sharing options...
haku Posted October 17, 2009 Share Posted October 17, 2009 The height of the bottom is equal to the height of the elements you moved through absolute positioning. Set the background image using a css background image, don't use an image tag. Put the other elements inside the div with the background image set to it. Quote Link to comment Share on other sites More sharing options...
designedfree4u Posted October 18, 2009 Author Share Posted October 18, 2009 Ok I did what you said and still nothing, I set the bk image: background-image: url('http://www.ratethepresidents.com/Layer-1.png'); And everything is contained in: <div id="Layer-1" > Thanks for the help. Quote Link to comment Share on other sites More sharing options...
haku Posted October 18, 2009 Share Posted October 18, 2009 It's not as simple as that. It's your use of absolute positioning that is causing all the problems. I gave you the overall solution, not the entire solution. What you need to do is go through and remove all the absolute positioning for everything, and all the 'top' settings for everything, and start from scratch. You also have an empty div in there with a fairly large size that is pushing stuff down, and isn't needed. Remove that div, get rid of the absolute positioning (trust me, you don't want to use it until you know how to use it, and by the time you know how to use it, you will know when to use it), and start from scratch. Use floats, margins, and paddings for your positioning. Absolute positioning is fools gold - it looks like it should be something good at a quick glace, but upon further investigation, it turns out to be no good at all. Quote Link to comment Share on other sites More sharing options...
PHPro Posted October 21, 2009 Share Posted October 21, 2009 Try clearing your heights and dont put a value in it. and check your margins. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.