Reputation: 621
Here is the fiddle I'm working with: http://jsfiddle.net/V6Vmh/5/
$(document).ready(function () {
$('.lava').css({left:$('span.item:first').position()['left']});
$('.item').mouseover(function () {
$('.lava').stop().animate({left:$(this).position()['left']}, {duration:200});
$('.panel').stop().animate({left:$(this).position()['left'] * (-2)}, {duration:200});
});
});
I could not add one more tab and change the size of it, there are many width values in the CSS code which confuses me. When I attempt to change something everything is ruined. Can you show me some quick tip on this fiddle as to how I add more tabs and what css property I should change after adding the tabs.
Upvotes: 0
Views: 728
Reputation: 3711
Looking through your code, there's some invalid markup (you have UL
s - list containers - with no LI
s - list items). I've created an updated Fiddle that corrects the code (to some degree) and shows an extra content item:
You should be able to add more, but there are five widths you'll need to change (line numbers refer to the CSS panel on the Fiddle):
Hope this helps...
Upvotes: 2