<div class="row">
<span class="show-on-hover"><button>Remove</button></span>
<span class="hide-on-hover">1.00</span>
<span class="show-on-hover"><input value="1.00"></span>
</div>
I want a CSS solution to show the input when the div is hovered over OR when the input has focus. I've figured out the hover:
div.row .show-on-hover{ display:none; }
div.row:hover .hide-on-hover{ display:none; }
div.row:hover .show-on-hover{ display:inline; }
But how do I keep the above rules if the input has focus as well (including the remove span as well)?