Jump to content

Trouble With Nav Bar


Floss
 Share

Recommended Posts

I'm trying to create a nav bar for my site. I am using an external style sheet. I am having trouble getting my CSS to only style the nav bar and not all the list and links on the page.I am using a <div id="navbar"> in my html.How do I get the my CSS to only style the <ul>s, <li>s, and <a>s within that division?

Link to comment
Share on other sites

maybe something like this?

div#navbar ul li a{}

but then that would assume you would the same styles applied to all three elements.

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