1
Is there any way to let an input that by default has its white background-color stick to the color of the line at the time of Hover?
input { border: none; outline: none }
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">
<table class="table table-hover">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Primeiro</th>
<th scope="col">Input</th>
<th scope="col">Nickname</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>Mark</td>
<td><input type="text" value="teste 1"></td>
<td>@mdo</td>
</tr>
<tr>
<th scope="row">2</th>
<td>Jacob</td>
<td><input type="text" value="teste 2"></td>
<td>@fat</td>
</tr>
</tbody>
</table>
Cool @hugocsl , the user question I’ll insert an edit button there when it is clicked I focus on input, no problem. But, could explain the operation, it’s like set a black background with opacity is this?
– LeAndrade
@Leandrade actually no... what happens is that this background color of TR, is a black with opacity, is the bootstrap pattern, and as I got the bootstrap CSS style straight the color came in RGBA, but vc can just put
transparent
there if you want. My intention was not to mess with the class hierarchy of the bootstrap, so I put the complete line.table-hover tbody tr:hover
before theinput
. Detail that as far as I know the BS does not have a class type bg-Transparent or bg-None, so have to do on hand– hugocsl
Okay, I get it. Thanks @hugocsl.
– LeAndrade
@Leandrade tmj!
– hugocsl