Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6551565
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:21:12+00:00 2026-05-25T12:21:12+00:00

I’m using jQueryUI Tabs inside a jQueryUI Dialog box. The content in each of

  • 0

I’m using jQueryUI Tabs inside a jQueryUI Dialog box. The content in each of the tab panels can be quite large — for example there can be a table with hundreds of rows inside each individual tab panel. So scrollbars are required to navigate the content.

By default, the dialog panel displays its own scrollbar — which is not exactly what I want. This scrollbar causes the navigation tabs themselves to move up and out of view. What I’d prefer is for each tab panel to display its own scrollbar if necessary but to leave the navigation tabs visible. I’ve tried setting “overflow:hidden” for the dialog panel, and then “overflow:auto” for the individual tab panels (see below). But then the tab panels are not getting scrollbars even when the content requires it.

Below is a (reduced) test case that shows the problem — including my attempt to use overflow styles to solve the problem. Replace “Big content…” with something that causes scrollbars to be required and you’ll see it.

Hope that’s clear enough. Any ideas on how to solve this problem? Many thanks…

<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/smoothness/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
   $("#dialog").dialog({height:300});
   $("#tabs").tabs();
});
</script>
</head>
<body>
   <div id="dialog" style="overflow:hidden;">
      <div id="tabs">
        <ul>
          <li><a href="#tab-1">tab-1</a></li>
          <li><a href="#tab-2">tab-2</a></li>
        </ul>
        <div id="tab-1" style="overflow:auto;">Big content...</div>
        <div id="tab-2" style="overflow:auto;">Big content...</div>
      </div>
   </div>
</body>
</html>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T12:21:13+00:00Added an answer on May 25, 2026 at 12:21 pm

    You could limit the height of each div which contains your ‘content’ ie:

    height:100px;
    overflow:auto;
    

    Demo: http://jsfiddle.net/AeXNP/

    Which makes everything very simple.

    Edit: The harder part comes when (as you requested below) that the content resizes based on the user resizing the dialog. In involves a lot more css… To use overflow in your case, you require a height of the div. As the height is changing all the time, you don’t know what height it will be. Therefore you need to manually set a margins and padding so you can set the height to ‘auto’. So the css for the self-expanding tab contents is:

    .fixedSizedTab {
        overflow:auto;     
        position:absolute; 
        height:auto; 
        bottom:0;
        top:0;
        left:0;
        right:0;
        margin-top:50px; 
        margin-bottom:10px; 
        margin-right:0px; 
        margin-left:0px;
    }
    

    Demo: http://jsfiddle.net/AeXNP/2/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a jquery bug and I've been looking for hours now, I can't
Basically, what I'm trying to create is a page of div tags, each has
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
We're building an app, our first using Rails 3, and we're having to build
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
Does anyone know how can I replace this 2 symbol below from the string

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.