December 28, 201312 yr Good evening, I have a website where the dropdown section of the menu drops behind the top level text (sorry if that doesn't make sense). I have tried changing the z-index but can't suss it. I need a fresh pair of eyes to help me out :-) Thanks in advance folks xx Edited December 28, 201312 yr by Charly
December 28, 201312 yr All the menu elements have a z-index of 40 which means that the drop downs will open below the top level menu item. Several ways to correct it. The easiest is to add a little inline style to the Windsurfing and Gap Years menu items. Take the Windsurfing item for example, change: <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-4449" id="menu-item-4449"> to: <li class="menu-item menu-item-type-post_type menu-item-object-page menu-item-4449" id="menu-item-4449" style="z-index:30;"> It may also be possible to add an extra class to those items and set the z-index there or perhaps something like: #menu-item-4449, #menu-item-4472 { z-index:30; } May do the trick.
December 28, 201312 yr Simple and Quick Solution On Line No. 218 in Style.css #primary-menu ul li { Remove -> Z-index : 40; } By Xee Studios
Create an account or sign in to comment