DEV Community

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

Posted on • Originally published at

Some small Css tips #002

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

Check color contrast in Firefox

Create triangles with css clip-path

Text version is here:

:first-child, :last-child and :nth-of-type selectors

Here's a text version:


Text version is here:

Focus state.

Check browser support

A live Codesandbox is here:

Want more of this?

If you would like to have these tips, and other stuff, in your twitter timeline come and follow me @Vanaf1979. If you just want the gist you can follow me here on @Vanaf1979 as well. Or you could check out my blog at

Thanks for reading and stay safe.

Top comments (0)