List Style
List Style
Section titled “List Style”Control the marker type and position of list items.
List Style Type
Section titled “List Style Type”| Class | Properties |
|---|---|
.list-none |
list-style-type: none |
.list-disc |
list-style-type: disc |
.list-decimal |
list-style-type: decimal |
List Style Position
Section titled “List Style Position”| Class | Properties |
|---|---|
.list-inside |
list-style-position: inside |
.list-outside |
list-style-position: outside |
Basic Usage
Section titled “Basic Usage”<!-- Unordered list with disc markers --><ul class="list-disc"> <li>Item one</li> <li>Item two</li></ul>
<!-- Ordered list with decimal markers --><ol class="list-decimal"> <li>First</li> <li>Second</li></ol>
<!-- No markers --><ul class="list-none"> <li>No bullet</li></ul>
<!-- Markers inside the content flow --><ul class="list-disc list-inside"> <li>Inside position</li></ul>SCSS Source
Section titled “SCSS Source”// From _utilities.scss$list-style-type-list: (none, disc, decimal) !default;$list-style-position-list: (inside, outside) !default;::: info
The framework reset sets list-style: none on all lists by default. Use .list-disc or .list-decimal to restore markers when needed.
:::