#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2011
    Location
    Saginaw MI
    Posts
    12
    Rep Power
    0

    Question Question About Floating Div Under Another Floating Div


    I know about Clearing Floats, but I am having an issue with Floating Two Div's, one over the other.

    Example:

    #uppermostWrapper{
    float:left;
    min-width:100%
    }

    #lowermostWrapper{
    clear:left;
    float:left;
    min-width:100%
    }

    Upper over the Lower, in any case, do I even have to float the Lower?

    Thank you....
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2011
    Location
    The Pleiades
    Posts
    299
    Rep Power
    9
    Can you post your HTML also please?

    Regards,

    NM.
  4. #3
  5. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2012
    Posts
    119
    Rep Power
    32
    Looking at what you have you don't need to float either div as they both fill 100% (I would change min-width to just width though as it can never be more than 100%) of the parent container so remove the floats and your problem will be solved.

    However, if your divs were less than 100%, the way to stack one on top of the other is to add
    Code:
    display: block;
    to the second div.

IMN logo majestic logo threadwatch logo seochat tools logo