Utility families
Position and layers
Positioning, offsets, stacking and scrolling.
position
pos:| Class | CSS properties |
|---|---|
pos: |
position |
-
Keywords:
staticrelativeabsolutefixedsticky - Arbitrary values: no
pos:static
.pos\:static {
position: static;
}
position-standalone
static
relative
absolute
fixed
sticky
| Class | Declarations |
|---|---|
static |
position: static |
relative |
position: relative |
absolute |
position: absolute |
fixed |
position: fixed |
sticky |
position: sticky |
static.static {
position: static;
}
relative
.relative {
position: relative;
}
z-index
z:| Class | CSS properties |
|---|---|
z: |
z-index |
-
Keywords:
01020304050auto - Arbitrary values: yes, in brackets
- Negative values: yes
z:0
.z\:0 {
z-index: 0;
}
inset
top:
right:
bottom:
left:
inset:
| Class | CSS properties |
|---|---|
top: |
top |
right: |
right |
bottom: |
bottom |
left: |
left |
inset: |
inset |
- Theme tokens: spacing
-
Keywords:
full1/2auto - Arbitrary values: yes, in brackets
- Negative values: yes
top:full
.top\:full {
top: 100%;
}
top:8
.top\:8 {
top: 2rem;
}
right:full
.right\:full {
right: 100%;
}
scroll-margin-top
smt:| Class | CSS properties |
|---|---|
smt: |
scroll-margin-top |
- Theme tokens: spacing
- Arbitrary values: yes, in brackets
smt:8
.smt\:8 {
scroll-margin-top: 2rem;
}
overflow
ov:
ovx:
ovy:
| Class | CSS properties |
|---|---|
ov: |
overflow |
ovx: |
overflow-x |
ovy: |
overflow-y |
-
Keywords:
autohiddenclipvisiblescroll - Arbitrary values: no
ov:auto
.ov\:auto {
overflow: auto;
}
ovx:auto
.ovx\:auto {
overflow-x: auto;
}