Reminder: Current Color in CSS

Reminder to self, as I seem to have forgotten this after more than 3 years: you can use currentColor as a value to define a color – be it text color, background color, border color, etc – in CSS. The value it represents is the current text color (quite obviously). Handy if you’re styling components based on the text color, as seen below:

cssconf-color3

(reminder via)

About the Author

Bramus is a Freelance Web Developer from Belgium. From the moment he discovered view-source at the age of 14 (way back in 1997), he fell in love with the web and has been tinkering with it ever since (more …)

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.