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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:10:07+00:00 2026-05-31T16:10:07+00:00

This is a very basic question, but my brain isn’t working and multiple attempts

  • 0

This is a very basic question, but my brain isn’t working and multiple attempts at fixing this have proved fruitless. I’m using overflow:auto in a parent so that it stretches to the height of its child <div>s. Usually this works for me, this time it’s not working: instead it hides the excess height and puts in a scrollbar so I can scroll down. This isn’t the behaviour I want. Here’s the HTML:

<div id="homecasestudy">
<h2 class="homecasestudyheading">Case Study</h2>
<div id="homecasestudyleft"><h3>Lorem</h3><p>Ipsum</p></div>
<div id="homecasestudyright">
<div id="casestudyfrontpic"><img src="uploads/casestudies/1/casestudyex1.jpg" border="0" /></div><div id="paperclip"></div>
<div id="homecasestudyquote">Quote</div>
</div>
</div><!-- homecasestudy -->

And the CSS:

#homecasestudy {
    width:389px;
    min-height:257px;
    background:url(../images/casestudybgtop.jpg) #E5E6E7 no-repeat;
    padding:13px 0 0 13px;
    position:relative;
    overflow:auto;
    }

#homecasestudyleft {
    width:200px;
    min-height:130px;
    float:left;
    margin:20px 0 0 10px;
    }

h2.homecasestudyheading {
    width:366px;
    height:25px;
    background:url(../images/casestudytitlebg.jpg) no-repeat;
    color:#005BA7;
    margin:0;
    padding:6px 0 0 8px;
    font-size:16px;
    }

#homecasestudyright {
    float:left;
    min-height:180px;
    }

#casestudyfrontpic {
    width:154px;
    height:160px;
    background:url(../images/casestudyfrontpic.png) no-repeat;
    padding:6px 0 0 9px;
    position:absolute;
    top:13px;
    right:8px;
    }

#paperclip {
    width:33px;
    height:58px;
    background:url(../images/paperclip.png) no-repeat;
    position:absolute;
    top:1px;
    right:125px;
    }

#homecasestudyquote {
    color:#6E7071;
    font-size:14px;
    font-weight:bold;
    width:147px;
    position:absolute;
    top:180px;
    right:10px;
    margin:0;
    padding:0;
    }
  • 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-31T16:10:08+00:00Added an answer on May 31, 2026 at 4:10 pm

    Overflow:auto will not help you here as a way to clear your floats. #homecasestudy is expanding to contain the children, but only as far as the page boundaries.

    You can try a CSS-only method for clearing divs.

    #homecasestudy:after {
      content:'.';
      clear: both;
      display: block;
      height: 0px;
      text-indent: -999999em;
    }
    

    This manufactures a block-level element after everything else in #homecasestudy, uses it to clear the floats, then does some resizing tricks to make sure the style rule adds no space.

    This trick won’t work in earlier versions of IE. In those cases, you should add zoom: 1 to the #homecasestudy rule in place of overflow: auto.

    If your quote is long, it will still overflow the boundaries of the box because it is absolutely positioned — there’s no good way to “contain” absolutely positioned items. If the quote has to be contained, try to find a way to do it with floats instead.

    See a working example here. I removed the “absolute” from the quote box in this example.
    http://dabblet.com/gist/2116495

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

Sidebar

Related Questions

This is a very basic question...quite embarassing, but here goes: I have a Stopwatch
This could be a very basic question for prodigies.But I have a doubt to
I know this maybe a very basic question but I'm having a bit of
I know, this might be a very basic question but I am not 100%
This is very basic question from programming point of view but as I am
Apologies if this is a very basic question, but I am preparing to create
I realise that this is a very basic question, but it is one which
Ok, I know this is a very basic question, but my head is swimming
This should be a very basic design question, but for some reason it doesn't
guys I know this question is very basic but I've met in few publications

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.