Hi,
I am trying to create a button using css sprite.
buttonnav.css
a.button {
background: url(../images/buttonnav.png) no-repeat 0 0;
width: 100px;
height: 50px;
display: block;
text-indent: -9999px;
}
a.button:hover { background-position: 0 -2px; }
a.button:active { background-position: 0 -8px; }
index.php
<div id="button">Button</div>
I do not see the button image, only the text "button". What's wrong with my code ?
Thanks.