Hola,
I’m tweaking the IE6 design of a page using some transparent pngs. Reading around, it seems there’s a lot of opinions about doing this correctly. I’m currently using the supersleight script, as it is a jQuery plugin and I understand that pretty well; however, I notice that background position fails. I get the same (top left) portion of the graphic on every button of the nav, rather than the positioning (shown below in my provided code).
Anyone with experience dealing with Supersleight and background positioning? Any tips? Or does anyone have a better system?
For your browsing interest, here’s the css involved in the positioning:
#nav {
float: right;
margin: 2.5em -124px 0 1em;
padding: 0;
}
#nav li {
margin: 0;
padding: 0;
}
#nav a {
display: block;
padding: 0;
margin: 0;
width: 182px;
height: 52px;
background: url('../images/nav.png') top left no-repeat;
text-indent: -999em;
}
#nav a, #nav a:hover {
border: none;
}
#index a {
background-position: -2px 0;
}
.index #nav li#index a {
background-position: -362px 0;
}
.index #nav li#index a:hover, #nav li#index a:hover {
background-position: -182px 0;
}
#gallery a {
background-position: -2px -52px;
}
.gallery #nav li#gallery a {
background-position: -362px -52px;
}
.gallery #nav li#gallery a:hover, #nav li#gallery a:hover {
background-position: -182px -52px;
}
#pricing a {
background-position: -2px -104px;
}
.pricing #nav li#pricing a {
background-position: -362px -104px;
}
.pricing #nav li#pricing a:hover, #nav li#pricing a:hover {
background-position: -182px -104px;
}
#contact_us a {
background-position: -2px -156px;
}
.contact_us #nav li#contact_us a {
background-position: -362px -156px;
}
.contact_us #nav li#contact_us a:hover, #nav li#contact_us a:hover {
background-position: -182px -156px;
}
#order a {
background-position: -2px -208px;
}
.order #nav li#order a {
background-position: -362px -208px;
}
.order #nav li#order a:hover, #nav li#order a:hover {
background-position: -182px -208px;
}
and a link to supersleight