Well, as the question says, I would need to position a <div>
with position:absolute
with respect to each of the rows.
<tr class = "danger" style="position:relative;">
<td align = "left"><strong> <%=listaDatos.get(0) %></strong></td>
<td align = "left" class="tdClave" ope="<%=ope_actual%>" fl="<%=listaDatos.get(cabeceras_splited.length)%>" pl="<%=parametros_listado%>" tv="<%=texto_vuelta%>" pe="<%=listaDatos.get(cabeceras_splited.length)%>" tn="<%=titulo_navegacion%>">
<div class="verOpcionesCelda oculto" align="center">
<i style="margin-top:55%" class="fa fa-eye"></i>
</div>
<div class="celdaOpciones"> <small><strong> <%=listaDatos.get(j)%></strong></small></div>
</td>
<td align = "right"><small><%=listaDatos.get(j)%></small></td>
<td align = "right"><small><%=listaDatos.get(j+1)%></small></td>
.....
Here the code of the row, what I would like is to place the <div>
with class='verOpcionesCelda'
in an absolute way with respect to <tr>
,
.verOpcionesCelda {
position:absolute;
border-top-right-radius:5px;
border-bottom-right-radius:5px;
height:100%;
width:18px;
float:left;
left:-1px;
top:0;
background-color:#1c84c6;
color:#FFF;
}
This is the code of the css, according to the specifications of the W3C, an absolute element will be positioned relative to the nearest positioned element. But in this case it makes me relative to the father div of everything.
The idea of all this is that when you click on that <div>
it displays some sliders that occupy the whole row, as it was mounted now it only occupied the <td>
it was created on, the idea is occupy the entire row now.
Any suggestions? Thanks in advance.
EDIT: Added link to jsbin
Here you have a link to what there is now, what I would like is that instead of occupying only one cell, it will occupy the whole row.