DEV Community

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

Posted on • Originally published at since1979.dev

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

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!?