Position
Position
Positioning utilities give you the ability to change the position property of an element.
Position: Fixed
Preview
Fixed
.slds-is-fixed can be used to position a container relative to the viewport.
Overview of CSS Classes
| Selector | .slds-is-static |
|---|---|
| Summary | Reset positioning back to normal behavior |
| Restrict | * |
| Modifier | True |
| Selector | .slds-is-relative |
|---|---|
| Summary | Used to contain children if children are absolutely positioned and out of flow. Also used to position element without changing layout. |
| Restrict | * |
| Modifier | True |
| Selector | .slds-is-fixed |
|---|---|
| Summary | Used to position an element relative to the viewport. |
| Restrict | * |
| Modifier | True |
| Selector | .slds-is-absolute |
|---|---|
| Summary | Used to position an element relative to its closest ancestor with relative positioning. |
| Restrict | * |
| Modifier | True |
| Selector | .slds-is-nested |
|---|---|
| Summary | Provides styles for a nested lists |
| Restrict | * |
| Modifier | True |
| Selector | .slds-is-collapsed |
|---|---|
| Summary | Hides elements inside a parent |
| Restrict | * |
| Modifier | True |
| Selector | .slds-is-expanded |
|---|---|
| Summary | Shows the elements inside the parent |
| Restrict | * |
| Modifier | True |
| Selector | .slds-is-visually-empty |
|---|---|
| Summary | Hides element and removes width |
| Restrict | * |
| Modifier | True |