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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T23:01:55+00:00 2026-06-02T23:01:55+00:00

http://jsfiddle.net/bobbyfrancisjoseph/2EfLz/1/ The following is a code that I wrote. The problem is that in

  • 0

http://jsfiddle.net/bobbyfrancisjoseph/2EfLz/1/

The following is a code that I wrote. The problem is that in the resulting page the wrapper div does not seems to container the nested divs.

  • 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-02T23:01:57+00:00Added an answer on June 2, 2026 at 11:01 pm

    Since your body elements, #left-container, #right-container, are being floated they are being removed from the regular content flow, so you will need a “clearfix” to properly contain the floated elements. You can do that in two ways:

    One, by Using a clearfix, like the following, my preferred approach since its inline and doesn’t mess with the absolutely positioned elements that might be overflowed out of the container:

    #wrapper:before, #wrapper:after {
        content:"";
        display:table;
    }
    
    #wrapper:after {
        clear:both;
    }
    
    #wrapper {
        *zoom:1; /* ie7 hasLayout fix */
    }
    

    Or two by using overflow:hidden on your #wrapper container, a method which i try to avoid since you might have positioned elements that might overflow out of your container with positition:absolute, so they will be cutoff with that method. A third option would be to add a at the end of your container, but that is just an icky approach :).

    Demo with the first (and my preferred) approach http://jsfiddle.net/2EfLz/2/

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

Sidebar

Related Questions

http://jsfiddle.net/fJkBU/1/ That's my code. Basically, I have an iFrame whose source may change. I
http://jsfiddle.net/AndyMP/nUhhf/1/ This is a simplified situation where I have a DIV that animates downwards
http://jsfiddle.net/JamesKyle/y7hBQ/ I'm making a simple jquery counting function that adds the following classes: First
http://jsfiddle.net/zjRga/55/ I want a div to open up that will appear over top of
http://jsfiddle.net/LUfgY/ It doesn't show it there but if that code is run on normal
http://jsfiddle.net/JamesKyle/re73T/ Trying to make a class switcher that will do the following: On Load
http://jsfiddle.net/FYtJH/1 The filtering select needs to warn users that they're about to change the
http://jsfiddle.net/YumHS/ In the page given in the jsfiddle der is a sidebar in the
http://jsfiddle.net/SXrAb/ Following the jsfiddle link there is a simplified sample of what I need.
http://jsfiddle.net/9BCrs/5/ I have this set up to load a file into a DIV using

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.