DEV Community

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

Posted on • Originally published at since1979.dev

16 5

Some small Css tips #006

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

Css child selector


Css child selector docs: https://developer.mozilla.org/en-US/docs/Web/CSS/Child_combinator


:focus with Adjacent Sibling Combinator



focus docs: https://developer.mozilla.org/en-US/docs/Web/CSS/:focus
Adjacent Sibling Combinator docs: https://developer.mozilla.org/en-US/docs/Web/CSS/Adjacent_sibling_combinator


Swap out colors using custom properties



Blog post: https://dev.to/vanaf1979/swap-out-text-colors-with-css-custom-properties-4gg


Centering using Grid


Skew cards



Css skewY() docs: https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/skewY()


Subscribe and Follow

Subscribe to my Youtube channel.

Follow me on Twitter

Thanks for reading/watching and stay safe

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

👋 Kindness is contagious

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

Okay