One moment, we're cooking some code examples

Header image

List your USP's

Lists are a great tool for summarizing information and emphasizing your unique selling points (USPs).

List types

Unordered list

An unordered list is a collection of related items that have no special order or sequence. The <ul> element represents an unordered list of items, typically rendered as a bulleted list. But be aware! the list has a default left margin of 40px and a top and bottom margin of 16px.

Default

  • Coffee
  • Tea
  • Milk

With square

  • Coffee
  • Tea
  • Milk

With nothing

  • Coffee
  • Tea
  • Milk

Ordered list

An Ordered list is a collection of related items that have order. The <ol> element represents an unordered list of items. An ordered list can be changed with start="100" to change the starting number. with type="A" you can change it to be numerical ( 1, 2, 3 ), alphabetical in lower and higher case ( a, b, c ) or roman numerals in lower and higher case ( I, II, III )

Default

  1. Coffee
  2. Tea
  3. Milk

With start number

  1. Coffee
  2. Tea
  3. Milk

With different type

  1. Coffee
  2. Tea
  3. Milk

Horizontal list

To change the list from vertical to horizontal you can style the <ul> and the <li>element. this is commonly used with a navigation bar.

  • Coffee
  • Tea
  • Milk

Nested list

With a nested is a list inside a list

  • Coffee
  • Tea
    • Black tea
    • Green tea
  • Milk

Unordered list with icons

To add the same icons to a list you can use a pseudo element like &:before

Explanation Icons

To add icon instead of bullets use Font Awesome, but if you want to place it in front of the text you must use a pseudo ( before or after ). This is because the system converts the unique code of the icon into an SVG. This is the best option if you want to use it for the whole list, but if you need different icons in your list you can place the code in the html.

Read more about icons

Unordered list with different icons

To add different icons a list you can put the code in HTML like this <i class="fal fa-bolt">

  • Coffee
  • Tea
  • Milk