Css on active element but not border
I am making mobile apps that have multiple tags span
in the html and I have applied a border to a range without defining a color so that the border is by color.
So now I wanted to change the color of the tags span
to active
but not the border, which is why I tried to do this by setting the value initial
, but there seems to be no support for the initial value in the border color.
span:active{
color: red;
border-color: initial;
}
I can control the color of a colored item with an active state, but it takes a lot of work. Is there a standard way to make an element change only on its element, but not on it?
+3
source to share