Reputation: 113
How do I show a tooltip on top of all HTML elements?
<div class="wrapper">Lorem ipsum dolor
<div class="tooltip">Lorem ipsum dolor</div>
</div>
Upvotes: 3
Views: 3720
Reputation: 2923
Okay I added 4 new IDs in your HTML DIVs
<div class="wrapper" id="test1">Lorem...
<div class="wrapper" id="test2">Lorem...
<div class="wrapper" id="test3">Lorem...
<div class="wrapper" id="test4">Lorem...
And added this new CSS:
#test1 {
z-index:40;
}
#test2 {
z-index:30;
}
#test3 {
z-index:20;
}
#test4 {
z-index:10;
}
DEMO Here: jsFiddle
Upvotes: 2