# Lists
Lists are a common way to organize and present data on webpages. You can easily create elegant unordered lists with ul
, ordered lists with ol
, and description lists with dl
. ul
will show bullets, ol
will show numbers for ordering, and dl
will indent itself if the list item is a sub item. In addition to basic lists, you can create navigation menus and custom drop down menus.
- Item 1
- Item 2
- Item 1
- Item 2
- Main description
- Sub item description
<div class="row">
<div class="col-4">
<ul>
<li>Item 1</li>
<li>Item 2</li>
</ul>
</div>
<div class="col-4">
<ol>
<li>Item 1</li>
<li>Item 2</li>
</ol>
</div>
<div class="col-4">
<dl>
<dt>Main description</dt>
<dd>Sub item description</dd>
</dl>
</div>
</div>
Types
Bulleted (Default)
A standard list with bullets preceding the list item.
- Apple
- Microsoft
<ul>
<li>Apple</li>
<li>Google</li>
<li>Facebook</li>
<li>Microsoft</li>
</ul>
Numbered
An ordered list with numbers for each item.
- Apple
- Microsoft
<ol>
<li>Apple</li>
<li>Google</li>
<li>Facebook</li>
<li>Microsoft</li>
</ol>
Plain
A list with no item decorations.
- Apple
- Microsoft
<ul class="no-bullets">
<li>Apple</li>
<li>Google</li>
<li>Facebook</li>
<li>Microsoft</li>
</ul>
Details
A list designed for detailed descriptions.
- Apple
- Apple Inc. is an American multinational technology company headquartered in Cupertino, California that designs, develops, and sells consumer electronics, ...
<dl>
<dt>Apple</dt>
<dd>Apple Inc. is an American multinational technology company headquartered in Cupertino, California that designs, develops, and sells consumer electronics, ...</dd>
</dl>
Nested Lists
Cirrus will automatically style and pad nested lists so you don't have to. Just add the nested-list
class to the div containing the list.
- List Item 1
- List Item 2
- List Item 3
- List Item 3.a
- List Item 3.b
- List Item 3.c
- List Item 3.c.i
- List Item 3.c.ii
- List Item 3.c.iii
- List Item 1
- List Item 2
- List Item 3
- List Item 3.a
- List Item 3.b
- List Item 3.c
- List Item 3.c.i
- List Item 3.c.ii
- List Item 3.c.iii
- List Item 1
- List Item 2
- List Item 3
- List Item 3.a
- List Item 3.b
- List Item 3.c
- List Item 3.c.i
- List Item 3.c.ii
- List Item 3.c.iii
<!-- Unordered List -->
<ul>
<li>List Item 1</li>
<li>List Item 2</li>
<li>List Item 3
<ul>
<li>List Item 3.a</li>
<li>List Item 3.b</li>
<li>List Item 3.c
<ul>
<li>List Item 3.c.i</li>
<li>List Item 3.c.ii</li>
<li>List Item 3.c.iii</li>
</ul>
</li>
</ul>
</li>
</ul>