mirror of
https://github.com/primer/css.git
synced 2024-12-18 19:51:37 +03:00
917 B
917 B
title | status |
---|---|
Layout | New release |
Marketing layout utilities build on top of primer-core utilities, adding the option of responsive positioning.
{:toc}
Responsive position
Use responsive position utilities to adjust the position of an element at different breakpoints.
<div class="position-relative p-6 bg-gray">
<div class="d-inline-block position-md-absolute bottom-0 right-0 border bg-white p-2">
.position-md-absolute
</div>
</div>
<div class="float-left border m-3" style="width:100px; height:100px;">
default
</div>
<div class="float-left position-lg-relative border m-3" style="width:100px; height:100px; top:12px; left:12px;">
.position-lg-relative
</div>
<div class="float-left border m-3" style="width:100px; height:100px;">
default
</div>
<div class="float-left border m-3" style="width:100px; height:100px;">
default
</div>