Jump to content

difference between "nav li:hover" & "nav li:hover a"?


Ganesh Ujwal
 Share

Recommended Posts

difference between "nav li:hover" & "nav li:hover a"?

Code:
nav li:hover {        background: #4b545f;        background: linear-gradient(top, #4f5964 0%, #5f6975 40%);        background: -moz-linear-gradient(top, #4f5964 0%, #5f6975 40%);        background: -webkit-linear-gradient(top, #4f5964 0%,#5f6975 40%);    }
Code:
nav li:hover a {        background: #4b545f;        background: linear-gradient(top, #4f5964 0%, #5f6975 40%);        background: -moz-linear-gradient(top, #4f5964 0%, #5f6975 40%);        background: -webkit-linear-gradient(top, #4f5964 0%,#5f6975 40%);    }

both are same or not?

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
 Share

×
×
  • Create New...