Forum Moderators: not2easy
I'm fairly new to this css stuff so bear with me. I'm wanting to create an unordered list with background images for bullets. That part I can do.
However, I'd like to also make the background image change when you hover over a link. I can get that to work as well, but I can't get the hover image to line up with the regular list image. That part has me banging my head against a wall.
I think the error of my ways is with #Occasions a:hover (brilliant deduction, huh?)
Thanks in advance. If anyone knows of a good tutorial on this topic, please pass it along.
Here's my pathetic code...
ul {
list-style-type: none;
padding: 0;
margin: 25px 5px 5px 20px;
}
#Occasions li {
background: transparent url(bullet.gif) no-repeat top left;
background-position: 5px 7px;
padding: 7px 0px 7px 30px;
margin: 0;
}
#Occasions a:link {
text-decoration: none;
color: #993333;
Margin: 0;
Padding: 0;
font: 12px Verdana, Arial, Helvetica, Sans-Serif;
}
#Occasions a:visited {
text-decoration: none;
color: #993333;
Margin: 0;
Padding: 0;
font: 12px Verdana, Arial, Helvetica, Sans-Serif;
}
#Occasions a:hover {
background: transparent url(bullet-on.gif) no-repeat top left;
background-position: -15px 0px;
padding: 0;
margin: 0;
font: 12px Verdana, Arial, Helvetica, Sans-Serif;
color: #000;
}
Actually, that's a lie. I wouldn't use background-image, I'd use list-style-image for both and forget IE :)