Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Menu "sticking" in IE

Featured Replies

A menu I am using for a WordPress site is sticking; the drop downs do not disappear when you roll off the menu. This is only occurring in IE.

 

I'm wondering if anyone else has experienced a similar issue and has a fix?

 

The code I am using is as follows:

 

PHP:

 

<?php wp_list_pages('title_li=&exclude=3,4,6' ); ?>

 

CSS:

 

#nav, #nav ul{

width: 960px;

margin: 0 auto 0 auto;

padding: 0;

height:32px;

list-style: none;

}

#nav a {

display:block;

margin: 0;

text-decoration:none;

padding:10px;

color:#fff;

text-transform:uppercase;

line-height:13px;

font-size:20px;

border-right:1px solid #000;

font-family: 'Crushed', Verdana, arial, serif;

text-transform:uppercase;

}

#nav li {

float: left;

}

#nav li a:hover {

color:#fff;

background-color: #000;

}

#nav li ul {

position: absolute;

width: 15em;

left: -999em;

padding-top:0px;

border-bottom:0;

}

#nav ul {

border-bottom:1px solid #000;

}

#nav li:hover ul, #nav li.sfhover ul {

left: auto;

z-index:1000;

border-bottom:0;

}

#nav li ul li {

background-color:#222222;

border-bottom:1px solid #000;

border-left:1px solid #000;

line-height:13px;

width:310px;

margin:0;

}

not much to go on there! double check that your UL/LI's are closed properly. Firefox and Chrome will allow them not to be closed and still function which is wrong and allows for sloppy code and then IE gets the blame.

Ok I've seen this one before in wordpress

 

#nav li ul{left:-999em;}

 

change to

 

#nav li ul{left:-999%;}

 

using percent seems to fix it

  • Author

Ok I've seen this one before in wordpress

 

#nav li ul{left:-999em;}

 

change to

 

#nav li ul{left:-999%;}

 

using percent seems to fix it

 

This worked a treat, thank you :)

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.