July 11, 201115 yr Hello friends, Why this tabis not working also the text is moving out of the right side bar?
July 11, 201115 yr I think you need to set your ul to use a class of "tabs", rather than an ID. The text is moving out of the right sidebar because .tab_content p has a width of 540px set on it. Edit: Always in there first Zed! Edited July 11, 201115 yr by Tristar Web Design
July 11, 201115 yr Author I think you need to set your ul to use a class of "tabs", rather than an ID. The text is moving out of the right sidebar because .tab_content p has a width of 540px set on it. Edit: Always in there first Zed! thanks i actually had // Jquery Tabs $(document).ready(function() { //When page loads... $(".tab_content").hide(); //Hide all content $("ul.tabs li:first").addClass("active").show(); //Activate first tab $(".tab_content:first").show(); //Show first tab content //On Click Event $("ul.tabs li").click(function() { $("ul.tabs li").removeClass("active"); //Remove any "active" class $(this).addClass("active"); //Add "active" class to selected tab $(".tab_content").hide(); //Hide all tab content var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content $(activeTab).fadeIn('slow'); //Fade in the active ID content return false; }); }); $(document).ready(function() { //When page loads... $(".tab_content2").hide(); //Hide all content $("ul.tabs2 li:first").addClass("active").show(); //Activate first tab $(".tab_content2:first").show(); //Show first tab content //On Click Event $("ul.tabs2 li").click(function() { $("ul.tabs2 li").removeClass("active"); //Remove any "active" class $(this).addClass("active"); //Add "active" class to selected tab $(".tab_content2").hide(); //Hide all tab content var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content $(activeTab).fadeIn('slow'); //Fade in the active ID content return false; }); }); replaced the .tabs with tab_links but there is a jeerk when i clik on tabs cant i have a smooth fading transition when i click tabs?
Create an account or sign in to comment