I have 5 menu items, and a background that is repeated on the image 5 times which uses background-position:0 -60px
to give the "selected" effect.
To select which part of the image is used, I am trying to use a class with a number, but it doesn't seem to work.
(Sorry this was hard for me to explain)
JSFIDDLE: http://jsfiddle.net/G4mLB/
HTML: (Class=3 is suppose to be the 3rd page)
<div id="menu" class="3">
CSS:
#menu {
position:absolute;
top:104px;
left:0;
height:60px;
width:523px;
background-image:url('http://kitoit.com/new/img/menu-buttons.png');
}
#menu .1 {
background-position:0 0px;
}
#menu .2 {
background-position:0 -60px;
}
#menu .3 {
background-position:0 -120px;
}
#menu .4 {
background-position:0 -180px;
}
#menu .5 {
background-position:0 -240px;
}