CSS Utility Classes Position

Use position utilities for quickly setting the position of an element.

The most common positioning classes are available:

<div class="_position:static">...</div>
<div class="_position:relative">...</div>
<div class="_position:absolute">...</div>
<div class="_position:fixed">...</div>
<div class="_position:sticky">...</div>

Fixed Top

You can position an element at the top of the viewport. This is usually used for positioning Navbars at the top of the page. Make sure you understand the implication of adding fixed position in your project and add additional CSS as needed.

<div class="_position:fixed-top">...</div>

Fixed Bottom

You can position an element at the bottom of the viewport. This is usually used for positioning Navbars at the bottom of the page.

<div class="_position:fixed-bottom">...</div>

Sticky Top

Position an element at the top of the viewport, but only after you scroll past it. The _sticky-top utility uses position: sticky, which isn’t fully supported in all browsers.

IE11 and IE10 will render position: sticky as position: relative. We wrap the styles in a @supports query, limiting the stickiness to only browsers that can render it properly.

<div class="_position:sticky-top">...</div>