everisk Posted August 27, 2009 Share Posted August 27, 2009 Hi, I have a layer that must overlay on another layer so I have to put "position: relative; top: -260px;" in. There are several other divs below that to make the page. However, there is a 260px empty space at the bottom of my page and I dont know how to get rid of it. I know the reason is because the top: -260px. BTW, all DIV are inside a supercontainer div (if that helps). How do I fix this empty space? Thanks a lot! Quote Link to comment Share on other sites More sharing options...
haku Posted August 27, 2009 Share Posted August 27, 2009 It's because of that third div after the first ordered list. Remove it and move it before the second div. Quote Link to comment Share on other sites More sharing options...
everisk Posted August 27, 2009 Author Share Posted August 27, 2009 I don't quite understand what you mean below is structure of my page. Could you show me what I have to remove? <div id="supercontainer"> <div id="top_bg" style=" margin-left:auto; margin-right:auto; width:1000px; height: 260px; background-image:url(../images/bg_top.jpg); background-position:center; background-repeat: no-repeat; z-index:98;"> </div> <div id="content_container" style="margin-left:auto; margin-right:auto;width: 900px; position: relative; top: -260px; z-index:99;"> This is a container of all the rest of the content <div>a bunch of div inside</div> <div>a bunch of div inside</div> <div>a bunch of div inside</div> </div> <div id="footer" style="clear: both;">Footer</div> <!-- ***there is 260px empty space here*** --> </div> <!-- end of super container --> Quote Link to comment Share on other sites More sharing options...
haku Posted August 27, 2009 Share Posted August 27, 2009 It was my way of saying that we can't help you if you don't show us any code. So now lets see the CSS. Quote Link to comment Share on other sites More sharing options...
everisk Posted August 27, 2009 Author Share Posted August 27, 2009 hahah .. oh .. i didn't get it and i thought what i gave was enough. Sorry! Quote Link to comment Share on other sites More sharing options...
everisk Posted August 30, 2009 Author Share Posted August 30, 2009 Anyone can help? 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.