I have a Table in the left menu which is having the Scroll bar and i have a Tooltip for each row inside a table. My requirement is to show Tooltip on Top of the Scrollbar towards right, but some how i am unable to achieve that.
Problem is Tooltip appearing behind the Scrollbar and body. I need to show it on top of the Scrollbar towards right.
I have a Position "Relative" for Parent Div and "Absolute" for Child element. Z-index also seems not working here.
HTML:
<div class="ResultsWrapper">
<table class="ResultsTable">
<tr>
<td class="hasTooltip">
<div class="SerialNumberContainer">
<div class="SerialNumber">3119985815206</div>
<div class="SerialNumberTooltip">3119985815206</div>
</div>
</td>
</tr>
</table>
</div>
CSS:
.SerialNumberContainer {
position: relative;
z-index: 10;
}
.SerialNumberTooltip {
position: absolute;
top: 10px;
left: 40px;
background-color: #FFF;
border: 1px solid #CCC;
display: none;
}
.SerialNumberContainer:hover {
z-index: 20;
}
.SerialNumberContainer:hover .SerialNumberTooltip {
display: block;
z-index: 40;
}
Please check the below Fiddle.
Appreciate your Help.
.SerialNumberTooltip { position: absolute; top: -22px; left: 0; background-color: #FFF; border: 1px solid #CCC; display: none; }- Awais