Jump to content

Css syntax pseudo-class


raygold

Recommended Posts

They mean different things; which one is correct depends on your HTML. 1. targets a link with id="red"2. targets a link that is a descendent of some other element with id="red" In the example, #home a:hover targets a link that is a child of a <li> with id="home"

Edited by Deirdre's Dad
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...