CSS Hover

liunx

Guest
Does anyone remember a package you could Download , which had templates on how to make mouseover effects with .CSS

I used to have it but can't remember what it's calledIn CSS code, use the :hover pseudo-property.


a {
color: #00f;
}

a:hover {
color: #f00;
}


In Internet Explorer, the :hover pseudo-element only works on the A tag; in Gecko-based browsers (Mozilla, Netscape, Firefox), though, you can apply it to any element.


li {
color: #f00;
}

/* Below does not work for IE. */
li:hover {
color: #00f;
}Originally posted by LUKESHELDRICK
Does anyone remember a package you could Download , which had templates on how to make mouseover effects with .CSSI'm afraid I don't have the faintest idea what you're talking about. However, you can set new styles for all elements onhover by using the :hover psuedo-class (IE only supports :hover on links though).

Here is a CSS image rollover demonstration using all of the psuedo-classes associated with links, I hope it helps.
 
Back
Top