Open In App

How to Hide the Bullets on List for the Sidebar?

Last Updated : 20 Nov, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

Bullets points on a list are small symbols (usually dots) placed before each item in an unordered HTML list (<ul>). It helps to make list items distinct and easier to read. To hide bullets in a sidebar list, use CSS list-style-type: none; on the list. This removes the default bullets.

Using the list-style-type Property

To remove hide the bullets on the list for the sidebar we can set list-style-type: none; it on the <ul> or <ol> element. This will remove the bullets.

html
<!DOCTYPE html>
<html lang="en">

<head>
    <style>
        ul#remove {
            list-style-type: none;
            padding: 0;
        }
    </style>
</head>

<body>
    <div class="right">
        <ul id="remove">
            <li>Geeks</li>
            <li>Sudo</li>
            <li>Gfg</li>
            <li>Gate</li>
            <li>Placement</li>
        </ul>
    </div>
</body>


</html>

Output

Output
hidden bullets o list

Similar Reads