Tuesday, August 15, 2017

Some Extremely Handy `:nth-child` Recipes as Sass Mixins

There is no such thing as one-size-fits-all styling. An image gallery with three images might need to be styled differently than an image gallery with twelve. There are some cool tricks that you can use to add some number-based logic to your CSS! Using :nth-child and :nth-last-child, you can get some surprisingly complex information without ever leaving your stylesheet. This post will assume that you have a basic understanding of how the :nth-child... ... Read the entire article at the source link...

http://codango.com/some-extremely-handy-nth-child-recipes-as-sass-mixins/

I am happy to share this resource that we found. The content displayed on this page is property of its original author or their organization.

No comments:

Post a Comment