జిందం వాఐి Posted November 29, 2023 Share Posted November 29, 2023 * i have 2 navigation bars * i tried ul { list-style-type: none; } * but the above code applies to every list * my navigation code <nav class="skip"> <ul><li> <a href="#main">skip to content</a> </li></ul> </nav> <nav class="navbar"> <a href="index.html">home</a> </nav> * the above code is in planning stage, i will add more * how to hide in navigation bar only? Link to comment Share on other sites More sharing options...
Ingolme Posted November 29, 2023 Share Posted November 29, 2023 You can select <ul> elements which are descendants of the <nav class="skip"> element using a combinator: .skip > ul Combinators are explained in this part of the CSS tutorial: https://www.w3schools.com/css/css_combinators.asp Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now