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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:33:36+00:00 2026-06-10T08:33:36+00:00

I have a content box-div element into which i’m loading pages using php/include(). Now

  • 0

I have a “content box”-div element into which i’m loading pages using php/include(). Now I made a “box”-div that is to be loaded into the “content box”-div, works fine, just when the content of the inner div is growing too large then just the inner div is expanding and “growing” out of the outer div.

I want the outer div element to grow if the inner div is exceeding the outer div’s min-height.

I googled some and found (even on stackoverflow) that I have to use a div with style=”clear: both” right after the div containers that are using ‘float: right;’ or ‘float: left;’.

Though I’m not really sure where to put those, I played around a bit but still can’t figure out how to get this working.

JSFiddle: JSFiddle inner div exceeding outer div

  • 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-06-10T08:33:37+00:00Added an answer on June 10, 2026 at 8:33 am

    Simply add overflow: hidden to your outer div – DEMO

    div.contentbox_body {
        min-height: 600px;
        overflow: hidden;
        background-color: blue;
        padding-top: 9px;
        padding-bottom: 9px;
        padding-left: 25px;
        padding-right: 25px
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have div which height changes depending on its content. Div element is located
My content is wrapped in a div which has an inset box-shadow, to try
This sounds counter-productive, but it's not: I have a div element which only contains
I have an element like this: <div id=content style=border: 2px solid black> </div> And
I have update panel that content check box, textbox, 3 DropDownList with CascadingDropDown extender.
I have received requirements that ask to normalize text box content when the user
I have a text box whose content is constantly changing and whenever that happens,
I have content loaded into a hidden iframe on a page and I'm wanting
I have content on a webpage which is both sent from the server at
can we have content text directly in <div>text content</div> or it should be like

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.