Jump to content

menus and nth child


MARCELO
 Share

Recommended Posts

You set the default styling first

.navbar a {....}

Then you set the styling to change the default below to override the default styling, as the style sheet is read from top to bottom.

example:
 

.navbar a {color: red;]

.navbar a {color: white;]

.navbar a {color:blue;]

 

The nav bar links will be blue as the last navbar a link colour overrides all the previous colour styles.

 

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...