1
1
mirror of https://github.com/primer/css.git synced 2024-12-18 11:41:33 +03:00
css/modules/primer-marketing-utilities/docs/layout.md

34 lines
917 B
Markdown
Raw Normal View History

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
<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>
<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
```