praveenjayapal praveenjayapal - 4 months ago 21
HTML Question

Need an unordered list without any bullets

I have created an unordered list, and I am appending and removing list items using jQuery.. I feel the bullets in the unordered list are bothersome, so I want to remove them. Is it possible to have a list without bullets?

Answer

You can remove bullets by setting the list-style-type to none on the CSS for the <ul> element, for example

ul
{
    list-style-type: none;
}

You might also want to add padding:0; margin:0; to that, if you want to remove indentation as well.

See Listutorial for a great walkthrough of list formatting techniques.