Introduction
CSS Classes
React Components
Cssville has 9 utility classes for position. Add one to an element's class attribute to set the property, for example pos-relative. Put a breakpoint name in front of a class to apply it only on screens up to that width, as in md-pos-relative. Add -hover to the end to apply a class only on hover, as in pos-relative-hover. Getting started explains how class names are built.
| Class name prefix | CSS properties |
|---|---|
| pos-* | position |
| Class name suffix | CSS properties value |
|---|---|
| *-static | static |
| *-relative | relative |
| *-absolute | absolute |
| *-fixed | fixed |
| *-sticky | sticky |
| *-inherit | inherit |
| *-initial | initial |
| *-revert | revert |
| *-unset | unset |
.pos-static {
position: static;
}