Free Indeed Posted September 24, 2010 Share Posted September 24, 2010 I'm trying to make a footer DIV that will hold a bunch of info at the bottom of my page, so I didn't have to use another table. I have an image as the background and I started to put in content (a search box). When I add padding to the top the search box moves down, as expected. However, when I try to add padding to the left side, a bunch of the page above ends up sliding right. The DIV id is #footer and the page as it is has some top padding, but no left padding. Do I need to clear something somehow to keep the left padding from affecting the rest of the page? Thanks!The page Link to comment Share on other sites More sharing options...
thescientist Posted September 24, 2010 Share Posted September 24, 2010 it appears that as you increase the padding, the width of the footer will also grow, as it has a defined width, and as such it will shift contents within the container. To correct, this, just offset the footer width by whatever left padding you give it. So if your footer is 960px, and you give it 60px of left padding, then change the footer width to 900px. Link to comment Share on other sites More sharing options...
Free Indeed Posted September 24, 2010 Author Share Posted September 24, 2010 Makes perfect sense - thanks!! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.