My HTML structure is extremely simple, as shown below:
<ul id="menu" ng-show="showMenu">
<li><a href="http://www.google.com" target="_blank">a</a></li>
<li><a href="http://www.msn.com" target="_blank">b</a></li>
</ul>
This is my CSS:
*{
box-sizing:border-box;
margin:0;
padding:0;
}
body{
background:#f2f2f0;
padding:15px;
}
#menu ul{
list-style:none !important;
}
#menu li a{
color:inherit;
text-decoration:none;
}
Even though I have set the list-style
to none for the ul
, it still shows bullets. When I remove the #menu
part, it works correctly. Can someone explain why this is happening? The #menu
refers to the id of the ul
, so it should apply those styles. Is there something wrong with how I've implemented it?