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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:35:02+00:00 2026-06-16T03:35:02+00:00

I kept running into issues where a child div’s content would expand beyond its

  • 0

I kept running into issues where a child div’s content would expand beyond its parent container. This was solved (using an answer I found on here) by setting the parent container’s overflow to “auto”.

My question is basically the subject line above: would there be a downside to setting my base/global style to include “overflow:auto” as the default? Since this simple addition seems to make parent containers properly contain their floating children, would in not make sense to default to that for everything and just change it when needed?

Thanks in advance.

  • 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-16T03:35:04+00:00Added an answer on June 16, 2026 at 3:35 am

    You could end up having a scroll running across the bottom of the site or “specific divs” you have set overflow: auto.

    Reading what you said about nested float divs not showing correctly;
    This is because when you set a div to “float” you remove it from the natural flow of the site.
    Have you tried fixing the float problem by setting the container div to clear:both/left/right?
    this would clear the floated divs and set the natural flow back?
    This could be your problem.

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

Sidebar

Related Questions

I've recently started working on my first Sinatra/CouchDB app and kept running into a
I was trying to write my first method_missing override when I kept running into
Answering my own question to an issue I kept running into with Backbone.js... In
Kept on seeing this pattern in code, but couldn't find any reference to it
I kept on receiving this error Deprecated: Assigning the return value of new by
Disclaimer : I kept this because some things may be useful to others, however,
I have kept hearing this statement. Switch..Case is Evil for code maintenance, but it
I have an application that has been running fine since its launch over a
I'm running into some very odd beheaviour regarding frames and internet explorer. The situation
I'm having trouble with my application running into out of memory errors. I'm fairly

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.