I am currently working on a tabbed view that is very similar to the demo found at the following link: http://jsfiddle.net/syahrasi/us8uc/
$(document).ready(function() {
$(".tabs-menu a").click(function(event) {
event.preventDefault();
$(this).parent().addClass("current");
$(this).parent().siblings().removeClass("current");
var tab = $(this).attr("href");
$(".tab-content").not(tab).css("display", "none");
$(tab).fadeIn();
});
});
My issue is that when switching between tabs, the container height adjusts to fit the content. How can I make sure the container maintains the height of the largest tab content to prevent any jumping or height changes? It is important to note that the tab contents will be dynamic, so setting a fixed height in CSS is not an option.
Any suggestions or solutions would be greatly appreciated. Thank you.