I have a beginner's question regarding my jQuery script. The script I have makes the menu move slightly to the right. My first issue is that the <a>
tag seems to be receiving bottom padding, and I am unsure why or how this is happening. My second question relates to how I can fill an entire <td>
with the <a>
element. As a beginner in jQuery, I am exploring different ways to learn, so I appreciate your patience. Thank you in advance for all responses.
Below is the jQuery Code:
$(document).ready(function(){
$('.menu a').hover(function(){
$(this).stop().animate({width: '180px'}, "slow");
}, function(){
$(this).stop().animate({width: '160px'}, "slow");
});
});
To view a demo on jsFiddle, click Here