by
109 8
0
3
1,320
1
Top 1% !
Famous
Specified
Popularity: 20736th place
This snippet is Public
No tags for this snippet yet.
Languageless

Every second Child

Every second element gets margin left and right
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/1393747/Every-second-Child?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
// Every second element (useful for grids with 3 elements in a row) .element { &:nth-child(3n-1) { margin: 0 30px 0 30px; } }
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus