Web Guidelines

Lists

Documentation and examples for global typefaces and typography styles.

Unordered

This is an example of an unordered list:

  • List item one
  • List item two
  • List item three
Copy

<ul>
<li>List item one</li>
<li>List item two</li>
<li>List item three</li>
</ul>

Copy

ul {
line-height: 2em;
}

Ordered

This is an example of an ordered list:

  1. List item one
  2. List item two
  3. List item three
Copy

<ol>
<li>List item one</li>
<li>List item two</li>
<li>List item three</li>
</ol>

Copy

ol {
line-height: 2em;
}

Inline

This is an example of an inline list. Additional styling can be added via CSS.

  • List item one.
  • List item two.
  • List item three.
Copy

<ul class=”list-inline”>
<li>List item one</li>
<li>List item two</li>
<li>List item three</li>
</ul>

Copy

.list-inline {
padding-left: 0;
list-style: none;
}

.list-inline-item {
display: inline-block;
}
.list-inline-item:not(:last-child) {
margin-right: 16px;
}

Unstyled

This is an example of an unstyled list:

  • List item one.
  • List item two.
  • List item three.
Copy

<ul class=”list-unstyled”>
<li>List item one</li>
<li>List item two</li>
<li>List item three</li>
</ul>

Copy

.list-unstyled {
list-style-type: none;
line-height: 2em;
}