
December 15th, 2012, 01:25 PM
|
|
Registered User
|
|
Join Date: Dec 2012
Posts: 3
Time spent in forums: 26 m 35 sec
Reputation Power: 0
|
|
|
Homework - Problems with sprites not showing up on button
I've tried so many things I can't figure out why the sprites aren't showing up. There are 3 states for the button: normal, hover and active.
Code:
#continue_btn {
float: right;
margin-right: 15px;
width: auto;
width: 229px;
height: 43px;
background-image:url(_img/continue_btn.png);
background-repeat: no-repeat;
float: none;
margin-left: -23px;
margin-bottom: 12px;
border-radius: 8px;
}
#continue_btn a{
background: url(_img/button_sprite.png) 0 0 no-repeat -13px -11px;
width: 229px;
height: 43px;
}
continue_btn a:hover {
background: url(_img/button_sprite.png) 0 0 no-repeat -14px -58px;
width: 229px;
height: 43px;
}
continue_btn a:active {
background: url(_img/button_sprite.png) 0 0 no-repeat -14px -106px;
width: 229px;
height: 43px;
}
You can see it here (click on the user input button at top left): http://www.myproduction-1.info/jquery_tools_org_css/index_closebutton.html
Sprite is at: http://www.myproduction-1.info/jquery_tools_org_css/_img/button_sprite.png
|