开发者

drop down sliding underneath content.. i have tried EVERYTHing.. :(

开发者 https://www.devze.com 2023-01-12 11:53 出处:网络
Hey guys, ive been working on this drop down for wayyy to long now.I just cant get the drop down to fall on top of the main content on the page.I have tried adding position: relative and z-index on al

Hey guys, ive been working on this drop down for wayyy to long now. I just cant get the drop down to fall on top of the main content on the page. I have tried adding position: relative and z-index on all relevant areas.

I think what may be causing the problem is "overflow: hidden" in some places.. but that is by far my favorite way开发者_开发问答 to contain floats..

http://dev.redstoneinvestments.com/index.php?s=&p=redstone&v=home

Any suggestions?


Remove position: relative and overflow: hidden from both header and maincontent. If you need to clear the floats, use the clearfix method: http://net.tutsplus.com/tutorials/html-css-techniques/css-fudamentals-containing-children/ (this article specifically explains why clearfix is a better solution than overflow: hidden when you have absolutely positioned elements that need to extend outside the container).


change #header css to

#header {
    background-color:#FFFFFF;
    height:140px;
    width:900px;
}

that enough, it fixed the problem on my firefox.

0

精彩评论

暂无评论...
验证码 换一张
取 消