DEV Community

Cover image for Some small Css tips #013
Stephan Nijman
Stephan Nijman

Posted on • Originally published at since1979.dev

Some small Css tips #013

To continue on my previous post here are some more tweets with little Css tips that might help you in your projects.

Css @import.


@import docs: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import

Select every 3th, 4th, 5th etc item.



:nth-child doc: https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-child

Css prefers-color-scheme.



Prefers color scheme docs: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme

Css prefers-reduced-motion.



Prefers reduced motion docs: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion

Subscribe and Follow

Subscribe to my Youtube channel.

Follow me on Twitter

Thanks for reading/watching and stay safe

Top comments (1)

Collapse
 
kevinletchford profile image
Kevin Letchford

CSS import is generally not the most performant way of adding multiple CSS files:

stackoverflow.com/questions/100369...