MICRO BLOG

Micro Blog

How to have the browser pick a contrasting color in CSS

How to have the browser pick a contrasting color in CSS
Have you ever wished you could write simple CSS to declare a color, and then have the browser figure out whether black or white should be paired with that color? Well, now you can, with contrast-color(). Here’s how it works.
https://ift.tt/xZ1F90J


Im Fediverse folgen

Horst Schulte
Horst Schulte
@HorstSchulte@horstschulte.com

Mein Bloggerleben reicht bis ins Jahr 2004 zurück. Ich bin jetzt 72 Jahre alt und lebe seit meiner Geburt, wie man so sagt, in der Provinz. Großstädte sind mir ein Gräuel.

3.611 Beiträge
0 Folgende

Fediverse Followers