- This topic is empty.
-
AuthorPosts
-
April 2, 2014 at 2:37 am #167372
paa1605
ParticipantHi folks,
I’m just moving my new site from the testing server to the live server for the first time and am checking it in all browsers.
For some reason in IE7 the drop down menu on the ‘services’ tab is hidden behind the main banners just below. This only happens in IE and on the home page.
Does anyone know why this is happening and can anyone help in fixing it?
The domain is http://www.bridgewaterhomecare.co.uk/
Many thanks.
April 2, 2014 at 3:23 am #167374Paulie_D
MemberSounds like a Z-index problem.
Personally, I don’t support below IE8 and am on the verge of dropping IE8.
April 2, 2014 at 3:29 am #167376paa1605
ParticipantHi, thanks for the reply.
Yeah it definitely sounds like a z-index problem but i just can’t seem to fix it. I’ve tried adding a z-index on the drop down div higher than the content div below but it hasn’t helped.
April 2, 2014 at 3:33 am #167377April 2, 2014 at 3:51 am #167378Atelierbram
ParticipantI would recommend swapping declarations for the hover to the hidden link:
#nav-container #drop-down li div { visibility: hidden; position: absolute; top: 21px; background: #FDFDFD url('http://www.bridgewaterhomecare.co.uk/wp- content/themes/bridge/images/nav-bg.gif') repeat-x bottom; padding: 6px; border-left: #0169B3 1px solid; border-right: #0169B3 1px solid; border-bottom: #0169B3 1px solid; -moz-border-radius-bottomright: 10px 10px; -moz-border-radius-bottomleft: 10px 10px; border-bottom-right-radius: 10px 10px; border-bottom-left-radius: 10px 10px; font-size: 14px; width: 220px; } #nav-container #drop-down li:hover div { visibility: visible; }
Also z-index needs to be ‘in scope’, but I don’t know if that’s the issue here.
April 2, 2014 at 4:20 am #167379paa1605
ParticipantI tried swapping the declarations like Atelierbram suggested but this did not work. The drop down div did not show at all when you hovered over the services tab.
Paulie D, where should that jquery code be placed? And what would be the target element that goes in the selector?
Sorry for the questions, my css knowledge is fairly limited.
April 2, 2014 at 4:27 am #167380Paulie_D
MemberOff hand it would probably be
$(function() { var zIndexNumber = 1000; // Put your target element(s) in the selector below! $("#dropdown li").each(function() { $(this).css('zIndex', zIndexNumber); zIndexNumber -= 10; }); });
and it would either go between
<script>
tags with your other js scrips.If this is WP (which I suspect) then there may be alternative places that this should go.
Frankly, the structure of the dropdowns is quite odd…
divs
inli
andul
intables
indivs
April 2, 2014 at 5:53 am #167386paa1605
ParticipantI fixed it!
Gave the header div a z-index higher than that of the content blocking div and it worked. The article below was quite useful..
http://jonathanstegall.com/2009/01/15/ie-z-index-bug-with-css-dropdown-menu/
Thanks for all your help guys, much appreciated.
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.