DEV Community

loading...
Cover image for Some small Css tips #013

Some small Css tips #013

vanaf1979 profile image Stephan Nijman Originally published at since1979.dev ・1 min read

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

Discussion (1)

pic
Editor guide
Collapse
kevinletchford profile image
Kevin Letchford

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

stackoverflow.com/questions/100369...