Utilities
Horizontal List
- HTML/CSS:Dev Ready
- Layout:Desktop Only
Sections
A horizontal list
Base#
- Horizontal List
- List Item
- List Item
<ul class="slds-list_horizontal">
<li>Horizontal List</li>
<li>List Item</li>
<li>List Item</li>
Examples#
Links#
<ul class="slds-list_horizontal">
<li>
<a href="#">Horizontal List with inline level links</a>
</li>
Block Links#
<ul class="slds-list_horizontal slds-has-block-links">
<li>
<a href="#">Horizontal List with block level links</a>
</li>
Block Links with Space#
<ul class="slds-list_horizontal slds-has-block-links_space">
<li>
<a href="#">Horizontal List with block level links and space</a>
</li>
Inline Block Links#
<ul class="slds-list_horizontal slds-has-inline-block-links">
<li>
<a href="#">Horizontal List with inline-block level links</a>
</li>
Inline Block Links with Space#
<ul class="slds-list_horizontal slds-has-inline-block-links_space">
<li>
<a href="#">Horizontal List with inline-block level links and space</a>
</li>
Left#
- Horizontal List with dot dividers to the left
- List Item
- List Item
<ul class="slds-list_horizontal slds-has-dividers_left">
<li class="slds-item">Horizontal List with dot dividers to the left</li>
<li class="slds-item">List Item</li>
<li class="slds-item">List Item</li>
Left with Link#
<ul class="slds-list_horizontal slds-has-dividers_left slds-has-block-links">
<li class="slds-item">
<a href="#">Horizontal List with block level links and dot dividers</a>
</li>
Left with Link Space#
<ul class="slds-list_horizontal slds-has-dividers_left slds-has-block-links_space">
<li class="slds-item">
<a href="#">Horizontal List with block level links and dot dividers with space</a>
</li>
Right#
- Horizontal List with dot dividers to the right
- List Item
- List Item
<ul class="slds-list_horizontal slds-has-dividers_right">
<li class="slds-item">Horizontal List with dot dividers to the right</li>
<li class="slds-item">List Item</li>
<li class="slds-item">List Item</li>
Right with Link#
<ul class="slds-list_horizontal slds-has-dividers_right slds-has-block-links">
<li class="slds-item">
<a href="#">Horizontal List with block level links and dot dividers</a>
</li>
Right with Link Space#
<ul class="slds-list_horizontal slds-has-dividers_right slds-has-block-links_space">
<li class="slds-item">
<a href="#">Horizontal List with block level links and dot dividers with space</a>
</li>
Overview of CSS Classes#
- Selector
- The CSS class being referred to.
- Summary
- A description of what the class does.
- Support
- Whether the class name is dev-ready (meaning it's fully vetted and tested and safe to use) or prototype (which means it's not fully vetted yet).
- Restrict
- The selector that the class name is allowed to be used on.
- Variant
- The base level pattern for a component. A variant can be extended to create another variant of that component, for example, a stateful button is a derivative of the base button.
- Modifier
- A single class that can be added to an HTML element of a component to modify its output. Typically these will be colors, sizing and positioning.
Selector | .slds-list_horizontal |
---|---|
Summary | Causes items of a list to display horizontally |
Restrict | * |
Modifier | True |