Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Layout disrupted by tooltip

Status
Not open for further replies.

makamo66

Technical User
Jul 24, 2010
13
US
<div class="default-btn-1"></div>
<button type="submit" value="0" id="default-btn-1" class="btn btn-default btn-default-1 btn-sm">
Remove Student
</button>

$("#default-btn-1").hover(function() {
var txt3 = "All information on this course will be lost. ";
var newDiv3 = $('<div style=\"position: relative; top: 200px; right: 200px; background-color: #444; padding: 6px; width: 180px; height: 60px; color: #fff;\"></div>').text(txt3);
$('.default-btn-1').append(newDiv3);
});

I have this code on my website and there is a problem with it. when I hover over the button the div moves the button down and disrupts the flow of the page. How can I get it to stay on top of the button and not move it down?


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top