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.

:hover width problem in IE7

Featured Replies

Hello, this is my first post. Seems like a great place . . .

 

Homepage for a college contains tabs running under jquery. On hover state, IE7 displays color 20+ pixels short.

 

part of jQuery code for grey hover

 .ui-tabs-nav li.fronttab_grey a:hover span, .ui-tabs-nav li.fronttab_grey a:focus span {
background-position: 0 -50px; background-color:#ccc; color:#171e2c;
}

:

 

located in typography.css

li.fronttab_grey a {
background:none;
background-image:url(../images/global/bannermenu_bg.png);
margin: 4px 0 0; /* position: relative makes opacity fail for disabled tab in IE */
padding-left: 0;
color: #fff;
font-weight: bold;
line-height: 1.2;
white-space: nowrap; /* required in IE 6 */    
outline: 0; /* prevent dotted border in Firefox */
}

li.fronttab_grey a:hover {
background-color:#CCCCCC;
color:#17182c;
width:100%;
}

 

located in layout.css:

ul.mainmenu {
list-style-type:none;
padding:8px 11px 12px 11px; /*changes bottom margin in IE only for some reason*/
margin-right:0;
}

ul.mainmenu li, ul.mainmenu li.last {
display:inline;
height:50px;
padding:0;
margin:0;
font-size:1.2em;
}

ul.mainmenu li.last {
border-right:0px solid white;
padding-right:0px;
background:none;
}

a.mainmenuitem:hover, a.mainmenuitemlast:hover, a.mainmenuitemfirst:hover {
text-decoration:none;
background:#17182c;
height:50px;
margin:0;
width:100%;
}

a.mainmenuitem {
height:50px;
padding:8px 11px 10px 11px;
margin:0px;
background:none;
color:white;
text-decoration:none;
}

a.mainmenuitemlast {
height:50px;
padding:8px 25px 10px 11px;
margin:0px;
background:none;
color:white;
text-decoration:none;
}

a.mainmenuitemfirst {
height:50px;
padding:8px 11px 10px 25px;
margin:0px;
background:none;
color:white;
text-decoration:none;
}

a.mainmenu2item, a.mainmenu2itemfirst, a.mainmenu2itemlast {
height:50px;
padding:7px 11px 10px 11px;
margin-top:1px;
background:none;
color:white;
text-decoration:none;
}

a.mainmenu2item:hover, a.mainmenu2itemlast:hover, a.mainmenu2itemfirst:hover {
text-decoration:none;
background:#CCCCCC;
color:#000;
width:100%;
}

a.mainmenu2itemlast {
padding:7px 61px 10px 11px;
}

a.mainmenu2itemfirst {
padding:7px 11px 10px 11px;
}

a.mainmenu2itemlast2 {
padding:7px 61px 10px 11px;
background:#CCCCCC;
color:#000;
text-decoration:none;
}

 

CSS files for the homepage

 

Thank you so much for you help!

 

--Matt

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.