I've made a simple menu, every item is 300x100 pixels. There's an image in background positioned -150 pixels, when you mouseover an item it changes to 0 (so entire item has background). It works fine on Chrome, the background goes halfway on mouseover on IE, and the background is constantly positioned 0 on FF. How can I fix it? S
HTML:
<ul class="wrapper">
<li id="webd" class="box"><span class="title">web design</span></li>
<li id="model" class="box"><span class="title">3D modeling</span></li>
<li id="digidraw" class="box"><span class="title">digital drawing</span></li>
<li id="other" class="box"><span class="title">other</span></li>
</ul>
Here's the CSS sample:
.box {
display: block;
position: relative;
width: 300px;
height: 110px;
background-color:black;
z-index: 15;
margin: 2px 2px 2px 2px;
font-family: 'web_serveroffregular';
color:white;
font-size:x-large;
transition: all .5s ease-in-out;
background-position-x:-150px;
background-repeat:no-repeat;
text-align:right;
}
#webd {
background-image:url(images/webd.png);
}
#webd:hover {
background-position-x:0px;
}
You can view the entire website at http://klaunfizia.pl/damian/ and the CSS at http://klaunfizia.pl/damian/style.css and http://klaunfizia.pl/damian/galeria.css if you want.
@edit
changed:
background-position-x:-150px;
to:
background-position: -150px 0px;
This works fine on FireFox, but still goes only halfway on IE, background:fixed
and backgroud-position:fixed
ruins it for every browser.