crocodilehun Posted April 10, 2019 Report Share Posted April 10, 2019 (edited) Hi. I this lession you are talking about changing your UL buttons in the navigation bar so that they look like circles and then you set your list-style-type for them to "none". based on that, i've tried to do this: in structure-ch5.css add ul li .navlist { list-style-type: decimal; line-height: 200%; } and then i've tried to add this class in the <nav>: <nav id="navigation"> <h2>The Main navigation</h2> <ul class="navlist"> <li><a href=#>Home</a></li> <li><a href=#>Store</a></li> <li><a href=#>Blog</a></li> <li><a href=#>Contact us</a></li> </ul> </nav> and it does not work, nothing happens. What am I doing wrong? Thanks Edited April 11, 2019 by crocodilehun code style Quote Link to comment Share on other sites More sharing options...
administrator Posted April 11, 2019 Report Share Posted April 11, 2019 Just target the navlist ID in your CSS code. No need to specify the tags. Be sure to use the ID selector: Quote In the CSS, a class selector is a name preceded by a full stop (“.”) and an ID selector is a name preceded by a hash character (“#”). Quote Link to comment Share on other sites More sharing options...
crocodilehun Posted April 11, 2019 Author Report Share Posted April 11, 2019 Thanks, but... i've done this at the end of the stylesheet: #navlist { list-style-type: none; line-height: 200%; } and then included it into .html file: <ul id="navlist"> <li><a href=#>Home</a></li> <li><a href=#>Store</a></li> <li><a href=#>Blog</a></li> <li><a href=#>Contact us</a></li> </ul> and it still didn't changed the list style. i've even done this: <ul style="list-style-type:none;"> didn't changed it either. Quote Link to comment Share on other sites More sharing options...
crocodilehun Posted April 11, 2019 Author Report Share Posted April 11, 2019 (edited) an update.. i've done this: #navigation ul li{ list-style-type: none; line-height: 200% and now it's working. in the very next video you explained this for another purpose but i haven't seen in till now. Thanks Edited April 11, 2019 by crocodilehun 1 Quote Link to comment Share on other sites More sharing options...
administrator Posted February 25, 2020 Report Share Posted February 25, 2020 On 4/11/2019 at 12:24 PM, crocodilehun said: in the very next video you explained this for another purpose but i haven't seen in till now. Yep. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.