Top
Set the top placement of positioned elements.
Widely available
This feature is well established and works across many devices and browser versions.
Chrome
Edge
Firefox
Safari
t-0top: 0;t-1top: .25rem;t-2top: .5rem;t-3top: .75rem;t-4top: 1rem;t-5top: 1.25rem;t-6top: 1.5rem;t-7top: 1.75rem;t-8top: 2rem;t-9top: 2.25rem;t-10top: 2.5rem;t-11top: 2.75rem;t-12top: 3rem;t-13top: 3.25rem;t-14top: 3.5rem;t-15top: 3.75rem;t-16top: 4rem;t-17top: 4.25rem;t-18top: 4.5rem;t-19top: 4.75rem;t-20top: 5rem;t-21top: 5.25rem;t-22top: 5.5rem;t-23top: 5.75rem;t-24top: 6rem;t-25top: 6.25rem;t-26top: 6.5rem;t-27top: 6.75rem;t-28top: 7rem;t-29top: 7.25rem;t-30top: 7.5rem;t-31top: 7.75rem;t-32top: 8rem;t-33top: 8.25rem;t-34top: 8.5rem;t-35top: 8.75rem;t-36top: 9rem;t-37top: 9.25rem;t-38top: 9.5rem;t-39top: 9.75rem;t-40top: 10rem;t-41top: 10.25rem;t-42top: 10.5rem;t-43top: 10.75rem;t-44top: 11rem;t-45top: 11.25rem;t-46top: 11.5rem;t-47top: 11.75rem;t-48top: 12rem;t-49top: 12.25rem;t-50top: 12.5rem;t-51top: 12.75rem;t-52top: 13rem;t-53top: 13.25rem;t-54top: 13.5rem;t-55top: 13.75rem;t-56top: 14rem;t-57top: 14.25rem;t-58top: 14.5rem;t-59top: 14.75rem;t-60top: 15rem;t-61top: 15.25rem;t-62top: 15.5rem;t-63top: 15.75rem;t-64top: 16rem;t-65top: 16.25rem;t-66top: 16.5rem;t-67top: 16.75rem;t-68top: 17rem;t-69top: 17.25rem;t-70top: 17.5rem;t-71top: 17.75rem;t-72top: 18rem;t-73top: 18.25rem;t-74top: 18.5rem;t-75top: 18.75rem;t-76top: 19rem;t-77top: 19.25rem;t-78top: 19.5rem;t-79top: 19.75rem;t-80top: 20rem;t-81top: 20.25rem;t-82top: 20.5rem;t-83top: 20.75rem;t-84top: 21rem;t-85top: 21.25rem;t-86top: 21.5rem;t-87top: 21.75rem;t-88top: 22rem;t-89top: 22.25rem;t-90top: 22.5rem;t-91top: 22.75rem;t-92top: 23rem;t-93top: 23.25rem;t-94top: 23.5rem;t-95top: 23.75rem;t-96top: 24rem;t-97top: 24.25rem;t-98top: 24.5rem;t-99top: 24.75rem;t-100top: 25rem;t-autotop: auto;t-fulltop: 100%;t-halftop: 50%;Responsiveness
Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.
Target viewport sizes with breakpoint prefixes.
sm:t-(value)Small≥640px
md:t-(value)Medium≥768px
lg:t-(value)Large≥1024px
xxl:t-(value)Extra Large≥1536px
Hover State
Apply styles conditionally on hover using the h: prefix.
Add the h: prefix to apply styles only when the user hovers over the element.
Syntax:
h:t-(value)Negative Values
Use negative variants to position in the opposite direction.
Use the -- syntax to apply negative numeric values.
Syntax:
t--(value)