mikes02
April 30th, 2009, 09:30 PM
$(document).ready(function() {
$('a.nudge').hover(function() { //mouse in
$(this).animate({ paddingLeft: '20px' }, 400);
}, function() { //mouse out
$(this).animate({ paddingLeft: 0 }, 400);
});
});
I am using David Walsh's link nudge script, but there is a problem, I have a multi-column layout using floated divs, and the nudge is causing it to push the div next to it over, is there any way around that happening? or will this only work if the div is plenty wide to accommodate the nudge? Would also like to point out that in this particular case making the divs wider is not an option. I may have answered my own question with that, but I'm just curious...
$('a.nudge').hover(function() { //mouse in
$(this).animate({ paddingLeft: '20px' }, 400);
}, function() { //mouse out
$(this).animate({ paddingLeft: 0 }, 400);
});
});
I am using David Walsh's link nudge script, but there is a problem, I have a multi-column layout using floated divs, and the nudge is causing it to push the div next to it over, is there any way around that happening? or will this only work if the div is plenty wide to accommodate the nudge? Would also like to point out that in this particular case making the divs wider is not an option. I may have answered my own question with that, but I'm just curious...