Loading...

position

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.

CSS class prefixes and related properties

Class name prefixCSS properties
pos-*position

CSS class suffixes and property values

Class name suffixCSS properties value
*-staticstatic
*-relativerelative
*-absoluteabsolute
*-fixedfixed
*-stickysticky
*-inheritinherit
*-initialinitial
*-revertrevert
*-unsetunset

pos: position

.pos-static.pos-static-hover.pos-relative.pos-relative-hover.pos-absolute.pos-absolute-hover.pos-fixed.pos-fixed-hover.pos-sticky.pos-sticky-hover.pos-inherit.pos-inherit-hover.pos-initial.pos-initial-hover.pos-revert.pos-revert-hover.pos-unset.pos-unset-hover
.pos-static {
  position: static;
}
© Cssville 2026
Hosted by Vercel.Protected by Cloudback.