Here is the HTML table code I have:
<table border='1px'>
<tr>
<td id='td'>first</td>
<td>last</td>
<tr>
<td id='td'>newFirst</td>
<td>newSecond</td>
</table>
In addition to that, here is a div with the class "Not_Editable'id-left':
<div class="Not_Editable id-left" >Not Editable</div>
I want this div to appear when hovering over the first td of the table row and not on the second td.
This CSS is used to style the div as a title label:
<style>
.Not_Editable {
position: relative;
background-color: #292929;
width: 100px;
height: 30px;
line-height: 30px; /* vertically center */
color: white;
text-align: center;
border-radius: 10px;
font-family: sans-serif;
}
.Not_Editable:after {
content: '';
position: absolute;
width: 0;
height: 0;
border: 15px solid;
}
.id-left:after {
border-right-color: #292929;
top: 50%;
right: 95%;
margin-top: -15px;
}
</style>
You can view the example on jsfiddle here. Feel free to help me figure out how to achieve this effect.