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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:09:14+00:00 2026-06-05T07:09:14+00:00

I have a container in which I’m putting a bunch of elements, and my

  • 0

I have a container in which I’m putting a bunch of elements, and my expectation was that the container would expand downward as the container filled with elements. Unfortunately, this is not the case. I have some div’s that are floating over the edge of my container. I was able to remedy this with a bunch of break tags, but this was a sloppy solution.

Perhaps my CSS is incorrect, but I can’t figure out where. The long select list and the major description should reside in the upper, white box.

Here’s a Fiddle.

EDIT: Uwe led me to research floats. I’ve discovered that floats are not considered in the normal flow layout. So how is this fixable?

EDIT 2: I found a clearfix solution.

.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
.clearfix {
    display: inline-block;
}
* html .clearfix {
    height: 1%;
} /* Hides from IE-mac \*/
    .clearfix {
        display: block;
}
  • 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-05T07:09:15+00:00Added an answer on June 5, 2026 at 7:09 am

    There are many ways to clear floats; simply appending overflow: hidden; to .main will solve your problem.

    In practice though, it’s probably better to directly clear the floats which are causing the problems rather than applying a fix to the parent div. I would actually recommend appending the following properties to .bottom instead:

    .bottom {
        clear: both;
        overflow: hidden;
    }
    
    • clear: both takes care of clearing the floats in .content.
    • overflow: hidden takes care of clearing the floats in .bottom

    You should also look into using the id attribute in addition to the class attribute for your HTML tags.

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

Sidebar

Related Questions

I have a grid (div container) which looks like this: However it's possible that
I have a container class which I would like to use to print all
I'm with a little problem. I have the container div for some elements which
If I have a container div called #container which has a bunch of .inside
I have a math problem that goes as follows: I have a container which
I have a fixed container and inside of that is an additional container which
Right, this is the problem I have a container (rar,zip) which contains images png's
I have a Container which is a DockLayout and in this Container is a
I have a div container which have several images,like this: <div style=width:600px;height:600px;> <img src=
I have a container which holds a bunch of pointers to a base class,

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.