I want to put a green color to the element i that has the "valid" class next to it, using only css.
<i>Hello</i>
<input type="text" class="valid">
.valid ~ i
{
color: #00c851 !important;
}
I want to put a green color to the element i that has the "valid" class next to it, using only css.
<i>Hello</i>
<input type="text" class="valid">
.valid ~ i
{
color: #00c851 !important;
}