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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:21:59+00:00 2026-05-25T12:21:59+00:00

If you copy the following HTML: http://pastebin.com/zBkzGysw into a text editor and test in

  • 0

If you copy the following HTML: http://pastebin.com/zBkzGysw into a text editor and test in a browser you will see that the yellow box has a massive height! This is because it has a class of clearfix and is clearing itself from the sidebar on the left hand side.

How can I stop this from happening?

I have tried using overflow:hidden; on the Middle column but that means if I have a table which has long content it will be cut off! Also why when doing this does using margin-left add margin on the right hand side?

  • 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-05-25T12:22:00+00:00Added an answer on May 25, 2026 at 12:22 pm

    Try applying display: inline-block; on your Middle div:

    .Middle
    {
        margin-left: 220px;
        display: inline-block;
    }
    

    You may also need to specify a width to it as well to get the layout you’re after.

    Update:

    I’ve found a way to get the layout behaviour I think you’re after, but I’ve done it by stripping out the clearfix styles. Is this any closer?

    <!doctype html>
    <html lang="en">
        <head>
            <title>Test</title>
            <style type="text/css">
            body
            {
                margin:0;
                padding:0;
            }
            .MainContent
            {
                margin: 20px;
                width:200px;
            }
            .Middle
            {
                margin-left: 220px;
                margin-top: -300px;
                vertical-align: top;
                float: left;
            }
            */
            </style>
        </head>
        <body>
    
            <div class="MainContent clearfix">
    
                <div style="width:200px;float:left;">
    
                    <div style="height:300px;background:blue;"></div>
    
                </div>
    
                <div class="Middle">
    
                    <div style="padding:20px;background:red;">
    
                        <div style="padding:10px;background:yellow;margin-bottom:20px;height:20px;">
                            <div style="float:left;height:20px;width:300px;background:green;"></div>
                            <div style="float:right;height:20px;width:300px;background:green;"></div>
                        </div>
    
                        <table style="border:#000 1px solid;">
                            <tr>
                                <td>ioruturiotueorit eiortueriotuoeotigggggggggggggggggggggggggggggggggggggggggggggggggggggggieruter tiouriotueroutoerutiuerteorituero tuioerutioeriotueroutoeruto eroturoetuoerutqe;ruqe; rty80yuto;eqotouyt4uyity 4iltyilytilryterutyertuyertuyert erut uerytierutyerutylerytelryltylert qerytuiertyileqrtyuqet</td>
                                <td>ioruturiotueorit eiortueriotuoeotiieruter tiouriotueroutoerutiuerteorituero tuioerutioeriotueroutoeruto eroturoeteeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeuoerutqe;ruqe; rty80yuto;eqotouyt4uyity 4iltyilytilryterutyertuyertuyert erut uerytierutyerutylerytelryltylert qerytuiertyileqrtyuqet</td>
                                <td>ioruturiotueorit eiortueriotuoeotiieruter tiouriotueroutoerutiuerteorituero tuioerutioeriotueroutoeruto eroturoetuoerutqe;ruqe; rty80yuto;eqotouyt4uyity 4iltyilytilryterutyertuyertuyert erut uerytierutyerutylerytelryltylert qerytuiertyileqrtyuqet</td>
                            </tr>
                        </table>
    
                    </div>
    
                </div>
    
            </div>
    
        </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm following http://guides.sproutcore.com/theming_app.html#styling-a-button to know about creating themes in SC. I did copy the
I'm following the instructions found at http://developer.android.com/guide/publishing/licensing.html I made a copy of the <sdk>/market_licensing
The following is the definition of copy, according to http://www.sgi.com/tech/stl/copy.html . template<class InputIterator, class
I copy the following from source of http://jquerymobile.com/demos/1.0/docs/pages/multipage-template.html <!DOCTYPE html> <html> <head> <meta charset=utf-8>
I am following this tutorial step by step http://code.google.com/apis/maps/articles/phpsqlajax.html . Actually I copy pasted
If you copy and paste the following text in a html page, &#1575;&#1606;&#1608;&#1575;&#1606; you
I've extracted the following from a project we are working on: http://www.bridgedev1.com/videotest.html This plays
I am trying to following this http://www.mastertheboss.com/jboss-application-server/287-jboss-jms.html?start=1 article to try a simple JMS client
I use the following code to copy the content of an XML file into
I have the following code where I make an copy of my database that

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.