I'm trying to create a rollover effect with some buttons using css. You can see what I am trying to do at http://www.chibabeat.com/test_site/page/17397 . My problem is that the hover effect works when you mouse over the text but I'm wanting the hover effect to work when you hover over the button as a whole. Can anyone tell me what I am doing wrong with the css? The css I am using is
Code:
#pic1 {
background: url(http://chibabeat.com/button.jpg) no-repeat;
position: relative;
font-family: arial, helvetica, sans-serif;
font-size: 130%;
font-weight: bold;
white-space: nowrap;
display: block;
width: 124px;
height: 70px;
text-decoration: none;
line-height: 55px;
vertical-align: middle;
margin: 0;
padding: 3px 11px 3px 0;
text-align:center;
}
#pic1 a {
text-decoration:none;
color: #000000;
}
#pic1 a:hover{
background: url(http://chibabeat.com/button1.jpg) no-repeat;
position: relative;
font-family: arial, helvetica, sans-serif;
font-size: 130%;
font-weight: bold;
white-space: nowrap;
display: block;
width: 124px;
height: 70px;
text-decoration: none;
line-height: 55px;
vertical-align: middle;
margin: 0;
padding: 3px 11px 3px 0;
text-align:center;
}
|