I have a div with 600px X 150px and i need to paste there a jQuery ui tabs. There will be only 2 tabs, but each tab will contain a lot of text and images, but i don’t want to resize div. If i insert overflow option in css to div or .ui-tabs there appear 2 scrolls – 1 from div and another in tab and it scrolls all tab panel.
Question: how to insert vertical scroll into tab content?
Thanks in advance.
I think I have a solution for you, if i understand your question correctly. Here’s the live example on jsFiddle.
I added two classes, one that’s applied to the overall tab element and one that’s applied to each tab panel.
(The
containerclass could also be renamed toui-tabsso that you add to the jQuery UIui-tabsclass, and thepanelclass could be renamed toui-tabs-panelso that you add to the jQuery UIui-tabs-panelclass.)Here’s the mark-up that I used…
When I hook this up with some jQuery UI tab magic:
I end up with a single scroll bar inside the tab.
I hope this helps!