mirror of
https://github.com/primer/css.git
synced 2024-12-01 04:21:12 +03:00
Center negative offset example
This commit is contained in:
parent
5dbf4a6e42
commit
a51922f405
@ -32,8 +32,8 @@ In an effort to reduce the size of our CSS, responsive breakpoints are only supp
|
||||
Using column offset classes can pull a div over X number of columns to the left. Negative offsets are available in [spacings from 1](../support/spacing/#spacing-scale) [to 7](../support/marketing-variables/).
|
||||
|
||||
```html
|
||||
<div class="clearfix">
|
||||
<div class="offset-n1 col-3 border p-3">.offset-n1</div>
|
||||
<div class="offset-n2 col-3 border p-3">.offset-n2</div>
|
||||
<div class="mx-auto border" style="width: 300px">
|
||||
<div class="offset-n1 col-4 border p-3">.offset-n1</div>
|
||||
<div class="offset-n2 col-4 border p-3">.offset-n2</div>
|
||||
</div>
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user