Articles → BOOTSTRAP → Bootstrap List Classes

Bootstrap List Classes






Classes


  1. List-unstyled - This class removes the default style of list.
  2. List-inline - This class puts all the list items in the single line.

Example


<!DOCTYPE html>
<html lang="en">
   <head>
      <title>Bootstrap Example</title>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
   </head>
   <body>
      <div class="container">
         <ul class="list-unstyled">
            <li>Apple</li>
            <li>Banana</li>
         </ul>
         <ul class="list-inline">
            <li>Apple</li>
            <li>Banana</li>
         </ul>
      </div>
   </body>
</html>



Output


Picture showing the output of the Bootstrap list classes
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Thursday, September 2, 2021

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250