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

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more →

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

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs