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

  • Home
  • SEARCH
  • 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 6830707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:39:02+00:00 2026-05-26T22:39:02+00:00

I have a structure that looks like this: http://peterned.home.xs4all.nl/examples/csslayout1.html – where the middle div

  • 0

I have a structure that looks like this: http://peterned.home.xs4all.nl/examples/csslayout1.html – where the middle div resizes to fit the height of the window.

Inside the middle div I have tabs, but upon calling the .tabs() method, the code automatically resizes the tabs to fit the height of the content. I want to prevent that behaviour since I’ll be replacing the content of the tabs dynamically and the originally calculated height will be wrong.

I’ve tried setting the height of the tabs in CSS but it just ignores it.

how can I accomplish this?

* edit *

I’ve posted code at jsfiddle: http://jsfiddle.net/tmLZS/ from which you can see that the tabs resize themselves (in IE 9 and Chrome 14 under Windows) to the height of their content.

I want to have them be as large as possible given the window size, and have them scroll when content exceeds window size.

  • 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-26T22:39:02+00:00Added an answer on May 26, 2026 at 10:39 pm

    This is a similar problem as the 100% height/min-height for the content. This post has some good discussions on this topic.

    I have fiddled with this issue a few times myself, and have found it very time consuming (and often unfeasible) to resolve this issue with pure CSS. Often what it takes is a line or two of JavaScript to achieve the same effect. For example, for the jsfiddle you provided, all you need to do is to set the height of #tabs to the height of document:

    $('#tabs').tabs().height($(document).height());
    

    See it in action: http://jsfiddle.net/william/tmLZS/3/.

    Note that I also changed the box-sizing of #tabs, so borders and paddings are included in the height. You don’t have to do this (this property is CSS3), but that means you will need to account for the borders and paddings when calculating the height.

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

Sidebar

Related Questions

I have a menu structure that looks like this: HTML: <li> <a href=#page> <b>Recover
I have a XML Structure that looks like this. <sales> <item name=Games sku=MIC28306200 iCat=28
I have a structure that roughly looks like this: List<ProductLine> -> ID Name ...
I have a directory structure that looks like this: /a/f.xml /b/f.xml /c/f.xml /d/f.xml What
I have an array structure that looks like this: Array ( [0] => Array
If I have a folder structure that looks like this: / /bin/myComponent.cfc /reports/index.cfm How
I currently have a table structure that looks something like this(some details omitted): ColumnName
I have a table structure that looks like: <table> <tr id=row1> <td> <div>row 1
Generally, MVC frameeworks have a structure that looks something like: /models /views /controllers /utils
I have an installation of CodeIgniter. Basically, my directory structure looks like this: |

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.