Create a bordered list without bullets using CSS

CSSWeb DevelopmentFront End Technology

To create a bordered list without bullets, you can try to run the following code. The list-style-type is set to none to remove bullets to a list

Example

Live Demo

<!DOCTYPE html>
<html>
   <head>
      <style>
         ul {
            background-color: orange;
            padding: 10px 20px;
            list-style-type: none;
            border: 2px solid black;
         }
      </style>
   </head>
   <body>
      <p>Countries</p>
      <ul>
         <li>India</li>
         <li>US</li>
         <li>Australia</li>
      </ul>
   </body>
</html>

Output

raja
Published on 08-May-2018 12:54:33
Advertisements