Tsallaka zuwa abun ciki
Justice Tech School

Sizing and Position

w-25, w-50, w-100 and h-100 set percentages. position-relative and position-absolute with top-0 and start-0 place items. Use fixed-top and sticky-top for bars.

Example
<div class="position-relative p-5 bg-light">
  <span class="position-absolute top-0 end-0 badge text-bg-danger">New</span>
  <div class="w-50">Half width</div>
</div>

Exercise

Half the width.

w-

Quiz Test

What does sticky-top do?

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