Jump to content

How to overwrite list style


newcoder1010

Recommended Posts

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

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

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
×
×
  • Create New...