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 6892429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:32:04+00:00 2026-05-27T06:32:04+00:00

I am creating a page where I do not want any fixed px height

  • 0

I am creating a page where I do not want any fixed px height and also use overflow:hidden.

My HTML is of the form;

<div class="scrollable fl">
...Some content
</div>

The CSS is defined as;

.scrollable {
    border-color: #CCCCCC;
    border-style: solid;
    border-width: 1px;
    height: 100%;
    overflow: hidden;
    position: relative;
    width: 100%;
}

Also just to add, I have given overflow:hidden (with float:left as well for some parent) to all the parent/ancestor divs of scrollable ..

Now the issue is that the scrollable div is not expanding as per it’s content if I give height as 100% (It does for fixed px height…But I do not have that option since I am designing a completely fluid layout)

I tried 2 things from my side which did not work;
1. Keeping height chain alive (i.e. giving 100% height to all parent/ancestor divs of scrollable .
2. Trying with height:auto for scrollable

How do I fix this issue?

  • 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-27T06:32:04+00:00Added an answer on May 27, 2026 at 6:32 am

    The div is set to 100% of the height required by it’s contents, not what you want.

    try:

    .scrollable {
        border-color: #CCCCCC;
        border-style: solid;
        border-width: 1px;
        overflow: hidden;
        position: relative;
        top:0px;
        bottom:0px;
        width: 100%;
    }
    

    You may need to do this for other elements up the chain as well.

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

Sidebar

Related Questions

I'm creating a login page. I want to create ASP.NET TextBox controls that have
I'm creating a web page, and I can't (with html code) add a draw
I am creating a page that only contains a gridpanel, I want my gridpanel
We're creating a page in Orchard CMS using the 'List' Content Type. We want
I am creating a web page, where I have an image that I want
I am creating a html page which contains a question (a puzzle like situation
I am creating a contact us page, and i want to receive mails from
I am creating a website.It is not a wordpress website.I want to create username
I'm creating a page with an image at the top, and a menu below.
I am creating a page where people can post articles. When the user posts

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.