DEV Community

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

Posted on • Originally published at since1979.dev

23 4

Some small Css tips #014

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

Prevent users from selecting text.



User-select docs: https://developer.mozilla.org/en-US/docs/Web/CSS/user-select


Css :is()



:is() docs: https://developer.mozilla.org/en-US/docs/Web/CSS/:is


Css viewport units.



Css logical properties.



Css logical properties docs: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties


Subscribe and Follow

Subscribe to my Youtube channel.

Follow me on Twitter

Thanks for reading/watching and stay safe

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (9)

Collapse
 
ash_bergs profile image
Ash

Whoa, :is() is about to be my new favorite 😋

Thanks for the nice write-up!

Collapse
 
vicible2 profile image
Manten Devillé

Really cool tips! Never heard about the :is() trick :)

Collapse
 
vanaf1979 profile image
Stephan Nijman

Thanks Manten! In some cases it can really clean up your selectors! :)

Collapse
 
jlrxt profile image
Jose Luis Ramos T.

Archivado. Gracias.

Collapse
 
vanaf1979 profile image
Stephan Nijman

De nada Jose! :p

Collapse
 
kashyappandya profile image
Kashyap Pandya

Never knew user select property, thanks Stephan.

Collapse
 
vanaf1979 profile image
Stephan Nijman

Your welcome Kashyap! :)

Collapse
 
vanaf1979 profile image
Stephan Nijman

Thanks you for that feedback Dariusz. Safari is becomming the new internet explorer! :p

 
vanaf1979 profile image
Stephan Nijman

I get that. I was (partially) kidding of course! But this does make me curious what your thoughts are on this!?

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