Loading...

top

Cssville has 4 utility classes for top. Add one to an element's class attribute to set the property, for example top-auto. Put a breakpoint name in front of a class to apply it only on screens up to that width, as in md-top-auto. Add -hover to the end to apply a class only on hover, as in top-auto-hover. Getting started explains how class names are built.

CSS class prefixes and related properties

Class name prefixCSS properties
top-*top

CSS class suffixes and property values

Class name suffixCSS properties value
*-00
*-autoauto
*-inheritinherit
*-initialinitial

top: top

.top-0.top-0-hover.top-auto.top-auto-hover.top-inherit.top-inherit-hover.top-initial.top-initial-hover
.top-0 {
  top: 0;
}
© Cssville 2026
Hosted by Vercel.Protected by Cloudback.