-
Notifications
You must be signed in to change notification settings - Fork 71
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/columns #41
Comments
Yes you should, if you don't do it it's not working anyway :) If look at the second grid styles, you should see : |
thanks @jacmanh
It works even without additional |
Are you sure ? I just test it and it doesn't with this code : <div class='grid'>
<div class='grid__col-12'>
<div class='grid__col-4'>tt</div>
<div class='grid__col-4'>ii</div>
<div class='grid__col-4'>oo</div>
</div>
</div> If you tested it with your code above, it will work because you misspell grid__col12, you forgot a dash. |
Take a look at this example please https://jsfiddle.net/wstezt1k/ |
Well as you discovered it's fairly flexible and you can do it either way - either with a However I would argue that nesting a |
Thank you! |
Though if you want to follow BEM rules, you wouldn't apply a modifier of |
That's a good point too. There's a few occasions where a class can be applied to either a |
That's what I would do honestly, even if that results in a longer class. What are the classes that you can apply to both |
But what if I want row direction for |
Hi guys,
How should I use nesting? For example if I declared
grid
andgrid__col-12
inside and I want to splitcol-12
into 3 cells for example. Should I include anothergrid
insidecol-12
or I can declarecol-x
directly incol-12
?Example:
Thanks
The text was updated successfully, but these errors were encountered: