Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested rows that ignore gutter #2

Closed
ogbaoghene opened this issue Sep 8, 2014 · 5 comments
Closed

Nested rows that ignore gutter #2

ogbaoghene opened this issue Sep 8, 2014 · 5 comments

Comments

@ogbaoghene
Copy link

Hi,

I see you have established a way to use nested rows but how about but how about nested rows that ignore gutters? Normally this is done using negative margins but there doesn't seem to be any neat way to use those alongside display: table.

@liantics
Copy link

I'm not sure if this is exactly what you're looking for, ogbaoghene, but there's a demo, here, for stripping the gutters from a row in bootstrap 3: http://www.bootply.com/107708

I found it in this stack overflow discussion (which was oriented toward earlier versions of bootstrap): http://stackoverflow.com/questions/16489307/how-to-remove-gutter-space-for-a-specific-div-only-bootstrap

@ogbaoghene
Copy link
Author

@liantics will take a look. Thanks a lot.

@chrisnager
Copy link
Owner

@ogbaoghene not sure if this addresses your issue, but here's an example of how you can use gutters with ungrid: http://codepen.io/chrisnager/pen/arKBu

@ogbaoghene
Copy link
Author

Actually it doesn't but thanks @chrisnager. Looking for an alternative to inline-block as a flexbox fallback.

@yckart
Copy link

yckart commented Mar 12, 2015

@chrisnager If you add the gutter-size also as margin to body (or any other appropriate parent), the overflow problem should be fixed ;)

body {
  margin: gutter-y gutter-x;
}

.container {
  margin: -gutter-y -gutter-x;
}

.row {
  border-spacing: gutter-x gutter-y;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants