Articles → BOOTSTRAP → Bootstrap List Classes
Bootstrap List Classes
Classes
- List-unstyled - This class removes the default style of list.
- 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
Click to Enlarge