Getting rid of bullet points from <ul>

Sam Khan picture Sam Khan · Nov 28, 2011 · Viewed 432.2k times · Source

I have the following list:

 <ul id="otis">
 <li>Benz</li>
 <li>Other Benz</li>
 <li>Other Other Benz</li>
 </ul>

I want to get rid the bullets so i tried:

 ul#otis {
 list-style-type: none;
 }

That didn't work though. What is the proper way to remove the bullets from the displayed list?

Answer

David says reinstate Monica picture David says reinstate Monica · Nov 28, 2011

Assuming that didn't work, you might want to combine the id-based selector with the li in order to apply the css to the li elements:

#otis li {
    list-style-type: none;
}

Reference: