163

Im working on a project and im using some ul and li's.

But i cant seem to figure out how to remove those pesky black dots that come with those lists.

Can any of you help me with this?

Edit: i completely forgot to search this site if there was already an answer (derp) turns out there was! Marked this as a duplicate, thanks for helping me everyone!

ProRacer420
  • 1,667
  • 2
  • 9
  • 9
  • 2
    I have to agree with you @catzilla There seem to be alot of questions regarding the removal of bullets. – D.Freeman Apr 01 '16 at 08:08

3 Answers3

364

Relatable post

Those black dots you are referencing to are called bullets.

They are pretty simple to remove, just add this line to your css:

ul {
    list-style-type: none;
}
Halo
  • 1,730
  • 1
  • 8
  • 31
D.Freeman
  • 3,824
  • 1
  • 10
  • 17
24

There you go, this is what I used to fix your problem:

CSS CODE

nav ul { list-style-type: none; }

HTML CODE

<nav>
<ul>
<li><a href="#">Milk</a>
   <ul>
   <li><a href="#">Goat</a></li>
   <li><a href="#">Cow</a></li>
   </ul>
</li>
<li><a href="#">Eggs</a>
   <ul>
   <li><a href="#">Free-range</a></li>
   <li><a href="#">Other</a></li>
   </ul>
</li>
<li><a href="#">Cheese</a>
   <ul>
   <li><a href="#">Smelly</a></li>
   <li><a href="#">Extra smelly</a></li>
   </ul>
</li>
</ul>
</nav>
D.Freeman
  • 3,824
  • 1
  • 10
  • 17
19

CSS :

ul{
list-style-type:none;
}

You can take a look at W3School

Alexis
  • 5,681
  • 1
  • 27
  • 44