An Interest In:
Web News this Week
- April 16, 2024
- April 15, 2024
- April 14, 2024
- April 13, 2024
- April 12, 2024
- April 11, 2024
- April 10, 2024
March 17, 2011 04:38 pm GMT
Original Link: http://css-tricks.com/currentcolor/
currentColor
CSS variables are always a hot topic when "the future of CSS" is discussed. They are actually coming natively, but using them in production (without a CSS preprocessor framework) is a long way off. However there is a feature that actually has some browser support now that has a CSS variable feel to it, and that's thecurrentColor
value.It works like this: div {color: red;border: 5px solid currentColor;box-shadow: 0 0 5px solid currentColor;}
…Original Link: http://css-tricks.com/currentcolor/
Share this article:
Tweet
View Full Article