Lets say I have 3 inputs,2 type="text"
and 1 type="button"
Is there a way to select all siblings of the button that are type text?
for example on button hover to apply background: yellow;
to its text siblings.
li input{
margin:3px;
}
li [type="button"]{
background:red;
color:white;
border:1px solid grey;
}
li:hover [type="button"]{
background:white;
color:red;
}
<ol>
<li><input type="text"><input type="text"><input type="button" value="BUTTON">
</li>
</ol>
` is wrapper for `- `!
– Justinas Jan 22 '21 at 12:12` but than the `- ` becomes the wrapper, which you will need to make it work with flex. I agree that using hover on a parent is better solution here.
– BunyamiN Jan 22 '21 at 12:23