currentColor in CSS

Anil Verma
Jun 11, 2021

currentColor acts like a variable for the current value of the color property on the element.

//Html<div>Hello from currentColor</div>//cssdiv {    color: blue;  
border: 5px solid currentColor;
box-shadow: 0 0 5px solid currentColor; }

Happy Codingโ€ฆ ๐Ÿ‘๐Ÿ‘

--

--

Anil Verma

Hi there ๐Ÿ‘‹, I am Anil Verma, a full stack web developer, and JavaScript enthusiast. ๐Ÿ‘ฅ Ask me anything about web development. web- https://anilvermaspeaks.in/