DEV Community

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

Posted on • Originally published at since1979.dev

6 1

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

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

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...

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay