2017-10-19 20:05:17 +03:00
|
|
|
---
|
|
|
|
title: Layout
|
|
|
|
status: New release
|
|
|
|
---
|
|
|
|
|
2018-05-05 01:01:50 +03:00
|
|
|
Marketing layout utilities build on top of [primer-core utilities](../../utilities/layout/#position), adding the option of responsive positioning.
|
2017-10-19 20:05:17 +03:00
|
|
|
|
|
|
|
{:toc}
|
|
|
|
|
|
|
|
## Responsive position
|
|
|
|
|
2017-11-06 18:49:16 +03:00
|
|
|
Use responsive position utilities to adjust the position of an element at different breakpoints.
|
2017-10-19 20:05:17 +03:00
|
|
|
|
|
|
|
```html
|
2017-10-20 01:02:31 +03:00
|
|
|
<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
|
2017-10-19 20:05:17 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-10-20 01:02:31 +03:00
|
|
|
|
|
|
|
<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>
|
2017-10-19 20:05:17 +03:00
|
|
|
```
|