13

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

1

1 Answer 1

16

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">&nbsp;</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.

1
  • 1
    Looks like it to me, yes. Commented Jul 8, 2015 at 18:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.