mstuart wrote:What would be the best way to display a JCarousel inside a tab?
I attempted to do the following in _ProductTabs.cshtml
var relatedProducts = Html.Widget("relatedProducts_jcaroussel").ToHtmlString();
if (!String.IsNullOrWhiteSpace(relatedProducts))
{
divs.Add(new KeyValuePair<string, string>("tab-relatedProducts", relatedProducts));
<li><a href="#tab-relatedProducts">Related Products</a></li>
}
The above was my best guess.
The JCarousel does shows up in the tab, but the formatting (HTML,CSS) is completely messed up.
Any assistance would be greatly appreciated.
Thanks,
~Mike
Hi Mike,
Pretty good guess! What you have done is perfectly fine and the JCarousel should be shown in the tabs. Do you have any javascript errors in the browser? The styling might need some fine tuning, so that the JCarousel looks nice inside a tab. If you can share a link to your site, so that we can take a look and see if we could help.
Thanks