lostprophetpunk Posted April 5, 2009 Share Posted April 5, 2009 Heya, I have a div that is sort of a 'feature' thing at the bottom of the web page. However, the problem that arises that even though I have set it to 'bottom: 0;', it does not entirely line up with the bottom of the page. It leaves about a 20-30px gap at the bottom of the page. I have already tried 'position: absolute' and 'position: fixed' for the '#feature' div, and they have both been unsuccessful as they push the div up to the other content. Here are the pieces of codes involved... #feature { width: 100%; height: 300px; background-color: #38362c; bottom: 0; border-top: 2px solid #8c8a80; margin-top: 40px; } #designs { width: 900px; height: 300px; margin: auto; margin-top: 30px; } .latest { width: 266px; height: 96px; background-color: #000000; border: 2px solid #cccccc; float: left; margin-left: 20px; } .latestinfo { width: 260px; height: 90px; font-family: georgia; font-size: 1.2em; text-align: left; color: #cccccc; float: left; margin-left: 20px; padding: 5px; } <div id='feature'> <div id='designs' align='center'> <div class='latest'></div> <div class='latest'></div> <div class='latest'></div> <div class='latestinfo'></div> <div class='latestinfo'></div> <div class='latestinfo'></div> </div> </div>[/html] If anyone could help, I would be truly thankful. Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted April 5, 2009 Share Posted April 5, 2009 do you have the page available to view online? we would need to see all markup and css as what you have provided has none of the details about the parent containers we would need Quote Link to comment Share on other sites More sharing options...
lostprophetpunk Posted April 5, 2009 Author Share Posted April 5, 2009 do you have the page available to view online? we would need to see all markup and css as what you have provided has none of the details about the parent containers we would need There are no parent divs to those that are shown. All of the CSS and HTML provided is connected to the problem, and is not affected by other divs. I have uploaded the page online... Link Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted April 5, 2009 Share Posted April 5, 2009 so you are telling me that there is no body tag in your markup? remember I said parent containers NOT parent divs... Quote Link to comment Share on other sites More sharing options...
lostprophetpunk Posted April 5, 2009 Author Share Posted April 5, 2009 so you are telling me that there is no body tag in your markup? remember I said parent containers NOT parent divs... Sorry, I misread your post. I do apologise. Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted April 5, 2009 Share Posted April 5, 2009 no need to apologize fella!!! just when you want help is often some markup or code that is elsewhere that is causing the problem... Quote Link to comment Share on other sites More sharing options...
Yesideez Posted April 6, 2009 Share Posted April 6, 2009 Have you set the margin and padding of the BODY attribute to 0? Sounds like you've got a margin issue. 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.