|
bobby -> RE: Hover effect on list items (9/2/2003 16:27:24)
|
There is no hover event for bullet lists, but you can create a bullet image for links that change on mouseover... heres how I recently did it: a.tab:link {
background-color: transparent;
background-image: url('images/g-block.gif');
background-repeat: no-repeat;
font-size: 1.4em;
font-weight: normal;
color: #000080;
text-decoration: none;
padding-left: 9px}
a.tab:visited {
background-color: transparent;
background-image: url('images/g-block.gif');
background-repeat: no-repeat;
font-size: 1.4em;
font-weight: normal;
color: #000080;
text-decoration: none;
padding-left: 9px}
a.tab:hover {
font-size: 1.4em;
font-weight: normal;
color: #ccff00;
background-color: transparent;
background-image: url('images/b-block.gif');
background-repeat: no-repeat;
text-decoration: none;
padding-left: 9px}
a.tab:active {
background-color: transparent;
background-image: url('images/g-block.gif');
background-repeat: no-repeat;
font-size: 1.4em;
font-weight: normal;
color: #000080;
text-decoration: none;
padding-left: 9px} Notice that the background image is different on hover, and that I have a 9px left side padding... The image is a 6px square, so the padding gives me 3px between the image and the text. The little block changes from green to blue on hover. It isn't a bulleted list, but it resembles one since it has a bullet style image to the left of each link...
|
|
|
|