mazman13 Posted June 9, 2009 Share Posted June 9, 2009 www.michaelzavala.com/beta1 The logo is supposed to be underneath the drop down menu, and instead the top of the logo is being pushed down and starts at the bottom of the menu. I bet if I use absolute it would solve it, but I'd rather not use it cuz it won't fit with the different screen sizes right? /* NAV / HEADER / LOGO STYLE */ #logo { clear: left; width: 233px; height: 200px; float: left; display: block; position: relative; z-index: 5; margin-top: 0px; } #nav_bar { width: 100%; height: 45px; background-color: #000000; } #nav_container { width: 900px; margin: 0px auto; } Quote Link to comment https://forums.phpfreaks.com/topic/161558-solved-z-index-under-otherwhat-am-i-doing-wrong/ Share on other sites More sharing options...
gevans Posted June 9, 2009 Share Posted June 9, 2009 Give it a margin-top of -20px or more/less? Quote Link to comment https://forums.phpfreaks.com/topic/161558-solved-z-index-under-otherwhat-am-i-doing-wrong/#findComment-852538 Share on other sites More sharing options...
mazman13 Posted June 9, 2009 Author Share Posted June 9, 2009 Sweet. No idea you could do neg. px. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/161558-solved-z-index-under-otherwhat-am-i-doing-wrong/#findComment-852653 Share on other sites More sharing options...
mazman13 Posted June 9, 2009 Author Share Posted June 9, 2009 Well, the neg. px doesn't work in IE. Works GREAT in FF tho...any ideaS? Quote Link to comment https://forums.phpfreaks.com/topic/161558-solved-z-index-under-otherwhat-am-i-doing-wrong/#findComment-852736 Share on other sites More sharing options...
.josh Posted June 9, 2009 Share Posted June 9, 2009 if the containing block is marked as position: relative, you can use absolute positioning for it and it will be relative to the containing element, not the overall page. Quote Link to comment https://forums.phpfreaks.com/topic/161558-solved-z-index-under-otherwhat-am-i-doing-wrong/#findComment-852743 Share on other sites More sharing options...
mazman13 Posted June 9, 2009 Author Share Posted June 9, 2009 Worked. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/161558-solved-z-index-under-otherwhat-am-i-doing-wrong/#findComment-852760 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.