Ok, so, heres my code:
$(document).ready(function() {
$('.topbuttons').mouseenter(function() {
$(this).css("margin-bottom", "65px").height(60).width(110);
});
$('.topbuttons').mouseleave(function() {
$(this).height(50).width(100);
});
});
If I take out the .css("margin-bottom", "65px") everything works perfectly, the div(.topbuttons) gets bigger when its moused over. However the div below .topbuttons is pushed down each time .topbuttons height is increased. So I figured I could lower the bottom margin on .topbuttons by 10px, because we are increasing .topbuttons size by 10px. However it doesn't seem to work and I have no clue why. Please help
I'd do it in pure CSS: jsBin demo