Skip to content
Justice Tech School

Position Utilities

position-relative, absolute and fixed-top place elements.

Example
<div class="position-relative">
  <span class="position-absolute top-0 end-0">Badge</span>
</div>
<nav class="fixed-top">Top bar</nav>

Exercise

Pin to top.

class="fixed-"

Quiz Test

Which pins an element to the top of the viewport?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.