newcoder1010 Posted April 15, 2018 Share Posted April 15, 2018 Hello, HTML: <ul class="menu nav"> <li class="first leaf active-trail visited active"><a href="</a></li> <li class="leaf"><a href="</a></li> </ul> CSS from bootstrap cdn has this: .nav { list-style: none; } ul li.collapsed, ul li.expanded, ul li.leaf { list-style: none; } How to overwrite to display the bullets next to list item? Link to comment Share on other sites More sharing options...
dsonesuk Posted April 16, 2018 Share Posted April 16, 2018 Remove those classes, that would remove the bullets or add your custom class so it has higher precedence over the current classes <ul class="show_bullets menu nav"> <li class="first leaf active-trail visited active"><a href="">nnnn</a></li> <li class="leaf"><a href="">xxxxxx</a></li> </ul> .show_bullets.nav { list-style: initial; padding-left: 40px; } ul.show_bullets li.collapsed, ul.show_bullets li.expanded, ul.show_bullets li.leaf { display: list-item; list-style: initial; } Link to comment Share on other sites More sharing options...
newcoder1010 Posted April 16, 2018 Author Share Posted April 16, 2018 Unfortunately I am not able to remove the classes and add a new class. How can I overwrite? Link to comment Share on other sites More sharing options...
dsonesuk Posted April 16, 2018 Share Posted April 16, 2018 You can't then, unless you lose the option to create bootstrap menu with current used classes. 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