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.

css rollover not working in IE

Featured Replies

Back again with what's probably another simple solve! I've got some css rollovers going on in the menu of the site I'm slowly working on. They're working fine in all browser that I know of except the IE family. Can any of you knowledgable souls shed a little light on what the devil's going on?

 

http://www.trianglehead-design.com/corfups...logy/index.html

 

Cheers

The reason why it's not working is that the <a> tag is taller than 11px, and so in IE that stretches the height so that it fits. This means that when you set the background position to bottom left, it goes further down than you want. And because you have set overflow to hidden, you cannot see this happening.

 

My quick fix would be to use "0 -11px" for the background position instead of "left bottom".

  • Author

Cheers Anthony that's worked a treat. I'm a bit confussed though when you say the <a> tag is taller than 11px. Do you mean because the image contained within is 22px?

 

I'm being silly aren't I!?

I'm a bit confussed though when you say the <a> tag is taller than 11px. Do you mean because the image contained within is 22px?

 

No, the image is in the background so has no affect on the size. It's because the font-size for the <a> tag is 12px and therefore in IE it's stretching the height.

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.