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.

Nested Menu Problem in IE

Featured Replies

I have uploaded a nested list type navigation which looks to be working OK on my Firefox browser (eventually !!)

 

see : http://williebee1.99k.org/sportnav.html

 

The spacing isn’t quite right yet, but that’s easy to fix. For now though, using the MeasureIt Firefox add-on the margins around the buttons are, roughly 20px left and right, 17px above the top button and about 96px below the bottom button

 

However, yesterday I was at my local library and the whole line of buttons was overlapping the right side of the teal colored box. I can’t be sure which version the computer had, but it was certainly IE.

 

There must be a bug, but I don’t know which one.I'm not too good with bugs (only ladybirds)

 

I’m attending a web design course and the lecturer was talking about nested lists at the last class. She gave us the javascript, see below which she stated would fix IE problems. She will be going over it more in the next class, but that’s in 2 ½ more weeks ; I don't want to wait that long.

 

$(document).ready(function(){

//call the jQuery Hover Over and Out

$('li.link').hover(over, out);

function over(event) {

$('ul', this).css('display', 'block');

$('a', this).css('background', '#ff9900');

$('ul a', this).css('background', 'none');

}

 

function out(event) {

$('ul', this).css('display', 'none');

$('a', this).css('background', 'none');

$('a.current', this).css('background', '#ff9900');

}

 

});

 

 

 

Any help would be appreciated.

 

Is the Javascript right and where does it go ?

Many many thanks !

  • Author

"mteam"

 

thanks for your reply

 

i actually thought I had done as you suggested, but of course i hadn't

 

Tried it with my local version and opened IE browser (initially didn't know I still has that program on my machine)

 

All OK now. I'll update internet version too

 

 

Kind regards !

 

 

ps Will this work on all browsers ? I don't really understand what the javascript was all about ?

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.