I have been evaluating purecss and would like to know whether in its grid system there is an equivalent to Bootstrap's offset class.
The grids doco does not mention such a thing.
Thanks
No, PureCSS doesn't have explicit support for Grid offsets; they seem to believe this is easy enough to tackle within the code of your own application.
See also:
You can, however, fake it:
<div class="pure-g">
<div class="pure-u-1-3"> </div>
<p class="pure-u-1-3">This would be displayed in the middle third.</p>
</div>
This isn't as "pure" (pun intended) as an offset, but it works, so I've used it.
It might not hurt to chime in on one of the issue reports if you'd like offsets in purecss, although so far it sounds like something they've chosen not to include.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With