Fixed

Fixed uses position:fixed to place elements on the corners of the stacking context (usually the viewport).


Fixed position made easy

Use Fixed- a corner and you’ll get an element with fixed position on that side.

index.html
<div class="Stack">
<div class="Fixed-topleft"> Top left </div>
<!-- ... other positions ... -->
</div>
TopLeft
TopRight
BtmLeft
BtmRight

Text rotation not included. Rotate text with Writing

Supports full-width and full-height fixed positions

Instead of specifying a corner, you just specify a side with Fixed-*.

index.html
<div class="Fixed-top"> Top </div>
<!-- ... other positions ... -->
</div>
Top
Bottom
Left
Right

Overlays and Centering made easy as well

Just use Fixed-overlay or Fixed-center to get these two layouts. Is there anything esaier than this?

index.html
<div class="Fixed-overlay"> Overlay </div>
<div class="Fixed-center"> Center </div>
Overlay
Center

Nudge elements towards the center easily

If you use --nudge, you will move all fixed elements towards the center of the container.

index.html
<div class="Stack">
<div class="Fixed-topleft [--nudge:0.5rem]"> Top left </div>
<!-- ... other positions ... -->
</div>
TopLeft
TopRight
BtmLeft
BtmRight