I have a FLOATING problem !

Dear Adobe Forum Users, please help!!
I am sure this is quite simple and I have even read in my BIG user manual what the solutions are supposed to be for this problem, but it just doesn't or won't work for me.
PROBLEM:
I want to have a 2 column text layout in the middle of my page using 3 DIVS, a wrapper DIV ( #contentPanel ) and within that a left and right column DIV ( #contentColumn1 and #contentColumn2 ). Depending on the amount of content that goes into the 2 column DIVS, I want the  #contentPanel to expand and contract along with these, keeping the white background all the time. BUT as I have the height of the contentPanel set to auto, it doesn't move at all, but the text columns expand (SEE pic1.jpg).
If I was to set the height of the contentPanel to a pixel height I would get the desired look (SEE pic2.jpg), but then it is a fixed height for all pages which I do not want.
I have read that if I am floating 2 DIVS inside a wrapper DIV, I need to just float the wrapper DIV also, but then it is floated left or right, and I need it centred so that doesn't work.
Any help or advice VERY much appreciated in solving this seemingly simple problem.
Below is the CSS for the DIVS in question.
#contentPanel {
    width:900px;
    height:auto;
    margin: 100px auto 50px auto;
    padding:30px;
    background-color:#FFF;
    border-radius:20px;
    box-shadow: 0 0 10px #666;
#contentColumn1 {
    width:405px;
    height:auto;
    margin-right:40px;
    float:left;
#contentColumn2 {
    width:405px;
    height:auto;
    float:right;
If anyone needs more info just let me know.
Many thanks!

Looks like a job for "clearfix". Add the following to the end of your CSS...
.clearfix:after {
    clear: both;
    display: block;
    content: " ";
    height: 0px;
    visibility: hidden;
.clearfix {
    display: inline-block;
* html .clearfix {
    height: 1%;
.clearfix {
    display: block;
Then place class="clearfix" in the div that isn't expanding right.

Similar Messages

  • CSS Float Problem

    Hi All, 10 years since I've been on here (in the days of tables) I have, I'm sure a very basic css float problem in the footer and hopefully someone could take the time to review it for me.  I have checked everything but can't find the problem.  Thanks in advance;
    example of problem here  http://davidbrown.ipower.com/template/template.htm
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Our Jewelry Retail Secrets - Thank You</title>
    <link href="../stylesheet/style.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    .H1_black {color: #000000}
    p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 25px;
    font-weight: normal;
    color: #000000;
    body {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    .headlinetxt_colour {color: #FF6600}
    .style1 {color: #ff6600}
    -->
    </style>
    </head>
    <body>
    <div id="wrapper">
      <div id="wrapperfix">
        <div id="toporange_bg">login</div>
      </div>
       <div id="wrapperfix_top_grey">
        <div id="top_grey_content_wrapper">
          <div id="big_logo"></div>
          <div id="welcome_user">Welcome "username here"</div>
        </div>
      </div>
      </div>
        <div id="main_content">
          <p>
            <!--main body content goes here -->
          Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam vel felis velit. Proin a nisl diam, id hendrerit lectus. Nunc eget tortor arcu. Mauris fringilla felis eget mi facilisis vel auctor est lacinia. Sed sit amet dui nibh, in varius metus. Duis malesuada euismod tortor eget lacinia. Donec pretium rutrum nunc, sagittis condimentum elit aliquam in. In eu mauris dui. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
          <p> Nam vel felis velit. Proin a nisl diam, id hendrerit lectus. Nunc eget tortor arcu. Mauris fringilla felis eget mi facilisis vel auctor est lacinia. Sed sit amet dui nibh, in varius metus. Duis malesuada euismod tortor eget lacinia. Donec pretium rutrum nunc, sagittis condimentum elit aliquam in. In eu mauris dui. </p>
      </div>
        <div id="footer_container">
          <div id="footer">
            <div id="footer_left">Footer Left</div>
            <div id="footer_centre">Footer Centre</div>
          <div id="footer_right">Footer Right</div></div>
        </div>
    </body>
    </html>
    #footer_container {
    background-color: #333333;
    width: 100%;
    top: 0px;
    margin: 0px;
    padding: 0px;
    #footer {
    background-color: #666666;
    min-width: 1000px;
    margin-right: auto;
    margin-left: auto;
    padding: 0px;
    width: 1000px;
    height: 150px;
    overflow: hidden;
    clear: both;
    margin-top: 0px;
    margin-bottom: 0px;
    position: relative;
    #footer_left {
    float: left;
    width: 33%;
    margin: 0px;
    padding: 0px;
    height: 150px;
    #footer_centre {
    width: 33%;
    height: 150px;
    margin: 0px;
    padding: 0px;
    float: left;
    #footer_right {
    float: left;
    width: 33%;
    height: 150px;
    margin: 0px;
    padding: 0px;

    I still don't see the #footer_left rule in the CSS in the online example at
    http://davidbrown.ipower.com/template/template.htm

  • Drop Float Problem

    Can someone help me with a drop float problem I am having in
    the old version of internet explorer? Please see this website:
    http://003a17b.netsolhost.com/kwdwebsite/index.html
    The green navigation bar should be lined up with the green
    bar in the logo (at the top). IE 6.0 is dropping it down lower. Can
    anyone help resolve this issue? Thanks!

    [email protected] posted in macromedia.dreamweaver
    > Can someone help me with a drop float problem I am
    having in the
    > old version of internet explorer? Please see this
    website:
    >
    http://003a17b.netsolhost.com/kwdwebsite/index.html
    > The green navigation bar should be lined up with the
    green bar in
    > the logo (at
    > the top). IE 6.0 is dropping it down lower. Can anyone
    help
    > resolve this issue? Thanks!
    (My IE6 box finally went to pasture, so I'll look into
    installing
    multiple IEs on one of my boxes this week)
    I would concentrate on creating valid code before trying to
    deal with
    cross-browser compatibility. You'll often find that that is
    all it
    takes.
    Enter your URL here:
    http://validator.w3.org
    For instance, you have several redundant, illegal instances
    of
    <link href="css/KWD.css" rel="stylesheet"
    type="text/css">
    inside the body element.
    It looks as if that might be part of a library item? If so,
    take it
    out.
    Reply back if that doesn't do it for you.
    Sidenote:
    Your excessive use of META keywords may be considered Meta
    tag stuffing
    or spamdexing and may not be as useful as you hope. Likewise
    for the
    double META Description where the second seems excessive. No
    links to
    back it up at the moment, but you might want to look into it.
    Mark A. Boyd
    Keep-On-Learnin' :)

  • Can I use a mini dvi to video adapter on my Macbook 7.1 of have some compatibility problems?

    I have a Macbook 7,1 and I want to buy a mini dvi to video (s-video and rca) to plug my macbook to my analog TV.... I want to know, if this have some compatibilty problems... or not....
    tengo una macbook 7.1 y quiero comprar un cable de mini dvi a video compuesto.... en la pagina de apple señala que esta diseñado para imac (intel) y powerbook de 12" que ya ni existen creo.... lo unico que quiero saber es si funcionaria o no el adaptador con mi macbook...

    The first review posting on the product page is:
    +dosen't work on mac pro with nvidia!!!!!+
    +Written by PH from hamburg+
    +August 27, 2007+
    Which suggests no. I have heard from an Apple Store "genius" that it does.
    Both are n=1, so I'd suggest a call to the Apple Store sales line (even if you don't order it that way).

  • Hello all .. i have a big problem in my ipad version 5.1.1 that is when i connect the ipad with my computer the i tunes give me this message ( itunes couldnt connect to this ipad .an unknown error occurred (0xE8000012).) how i can solve this problem pleas

    hello all .. i have a big problem in my ipad version 5.1.1 that is when i connect the ipad with my computer the i tunes give me this message ( itunes couldnt connect to this ipad .an unknown error occurred (0xE8000012).) how i can solve this problem please
    and this is an pic for the problem

    There is some troubleshooting for 0xE8 error codes on this page : http://support.apple.com/kb/TS3221 - you could see if anything on that page fixes it

  • DVD player 5.4 keeps crashing using a variety of DVDs.  I have OS 10.6.8, and have repaired permissions, verified the disc, and installed the 10.6.8 update combo.  Several previous questions have adressed this problem.  What is the solution?

    DVD player 5.4 keeps crashing.  I have seen here that a number of other people have had this problem.  I recently started one DVD, and when I went back to it, it opened to a black screen twice.  It also crashes with other DVDs after I scroll ahead or back.  It gives an error message that it is skipping damaged areas, or sometines error 69889.  Playing this on a PC, however, there is no problem.  I repaired the permissions, verified the disc, and installed the OS 10.6.8 combo update, all to no avail.  Techs told me that it is usually the hardware, so I bought a LaCie external combo drive.  Still crashes.  Looked on Apple downloads and they don't list a 5.4 to replace this version.  Mac informer.com offers a free download for DVD 5.5- should I try this?  Why doesn't Apple fix this problem?

    Your suggestions did not help.  I repeated them again after the first try did not succeed.  Any other ideas?
    Would installing another copy of DVD 5.4 help?  How can I get another copy of DVD player 5.4, since Apple does not seem to offer it?  I do have the disc for Snow Leopard, but am not extremely tech savy (and maybe it is the same corrupted version). 

  • Hi team , I have some questions/Problem for my product apple (iPad,iPhone) , I want to employee speak and type thai language

    Hi team , I have some questions/Problem for my product apple (iPad,) , I want to employee that can  speak  or response me in thai language
    1. ผม อาคเนย์  พำนักอยู่ประเทศไทย กรุงเทพฯ  มีปัญหาสอบถาม ดังต่อไปนี้
       - กระผมได้ทำการตัดบัตร เครดิต เพื่อซื้อเกมส์ผ่าน itune store ผ่าน apple itune ID : misskor.yaprom@*** เพื่อซื้อเกมส์ Eleves Realm ในวันที่18 ก.ค. 56 เวลา 17.07น. ซึ่งทางบัตรเครดิตได้แจ้งเรียกเก็บเงินมายอดเงิน 39.99$ ซึ่งในระบบจริงๆ ทางกระผมต้องการตัดในยอด 99.99$ แต่พอได้ประสานงานไปยังธนาคาร ได้รับการแจ้งกลับมาว่า ได้ทำการตัดบัตรในยอดเงิน 39.99$ ซึ่งในความเป็นจริงนั้น กระผมไม่ได้สั่งซื้อเกมส์ในยอด 39.99$ ซึ่งในยอด 99.99$ นั้นพยายามตัดในระบบบัตรเครดิตอยู่ แต่ทางกระผมได้ยืนยันกลับไปว่าไม่ให้ระบบตัดนะครับ เพราะว่าเนื่องจากมีปัญหาในการชำระเงินระหว่าง Apple itune store อยู่
       - ทั้งนี้ขอให้ทางเจ้าหน้าที่ประสานงานตรวจสอบ apple itune ID : misskor.yaprom@*** เพื่อซื้อเกมส์ Eleves Realm ตามที่ได้ให้รายละเอียดโดยด่วนว่าเป็นเพราะว่าระบบมีปัญหาหรือว่ามีอะไรเกิดขึ้นในข ั้นตอนการชำระเงินครับ
    รบกวนประสานงานกลับมายังกระผม อาคเนย์ ที่หมายเลขโทรศัพท์มือถือ +**** / reply feedback  email : lekod1@*** โดยด่วน ในวันศุกร์ที่ 19 ก.ค. 2556 ครับ
    ขอบคุณครับ
    อาคเนย์  อุดปิน
    กด
    <Edited By Host>

    Google translation:
    พนักงานของ iTunes Store จะไม่ได้อ่านข้อความในเว็บบอร์ดนี้ ถ้าคุณต้องการความช่วยเหลือสำหรับปัญหาที่มีใน iTunes Store, คุณจะต้องติดต่อกับพวกเขาผ่านทางแบบฟอร์มเว็บนี้:
    http://www.apple.com/emea/support/itunes/contact.html

  • I am using a work laptop and have the same problem. When I try to change the "configure proxy", they only available option is "use this proxy server for all protocols". Could it be that my system administrator blocked me from changing it since they don'

    I am using a work laptop and have the same problem. When I try to change the "configure proxy", they only available option is "use this proxy server for all protocols". Could it be that my system administrator blocked me from changing it since they don't want us to use Firefox.
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.4; FNGP_SYS)

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the ''Safe mode'' start window.
    You have to close and restart Firefox after each change via "File > Exit" (on Mac: "Firefox > Quit")

  • I have a serious (and bizarre!) issue with my novation impulse (Although i've tried it with two other keyboards and i still have the same problem) and its compatibility with mainstage 3

    i have a serious (and bizarre!) issue with my novation impulse (Although i've tried it with two other keyboards and i still have the same problem) and its compatibility with mainstage 3.
    the problem is best explained on the following one - page thread: 
    https://discussions.apple.com/thread/3951518?start=0&tstart=0
    (Clearly i'm not alone in this problem, although i think i figured out what's going wrong a little more than he did...read on!)
    his solution, to put mainstage in jump mode, is very unsatisfactory to me, as it bounces all of a sudden to drastically different settings.
    basically, my analysis is that my controller is NOT receiving MIDI date from mainstage.  in other words, mainstage knows what my controller is doing, but my controller doens't know what mainstage is doing.
     let's say i turn the knob all the way to the right ... 127...and the virtual fader goes to the right like it's supposed to. 
    now...next...let's say i change to a different patch, where that same VIRTUAL fader is not at the max clockwise position..maybe it's only at 1pm.  now when i turn the physical knob to the RIGHT, the midi data is still at 127 on the controller!  it didn't "reset" to sync up with the new level (say 80 or so) setting on the new patch.  so i can't increase that new setting of 80 by continuing to turn the knob to the right.  i have to turn it all the way to zero,...and then continue PAST zero until the controller thinks that IT is at 0...at that point the controller and mainstage are in agreement, and things work fine....so bascially, the keyboard thinks the level is at max...but mainstage thinks the level is at 1pm.
    i am using Logic 9, and i have a macbook pro 2.9 Ghz I7 with 8 gigs of memory and OS X 10.8.4

    Hi Josh,
    Thanks for taking the time to contact us here a Novation for technical support. Lets continue to correspond via email so we can get your issue resolved.
    Thanks.
    Mike Towns

  • I have recently updated the new apps via creative cloud now photoshop and bridge no longer work, they open then say they have encountered a problem and close, I also tried opening the old version of photo shop but getting the same result

    I have recently updated the new apps via creative cloud now photoshop and bridge no longer work, they open then say they have encountered a problem and close, I also tried opening the old version of photo shop but getting the same result

    What OS version? What's the exact error? Exactly when does the error occur? What previous versions? What is on the screen when the error displays? Does Photoshop get fully open?
    Try opening Photoshop holding down Shift key immediately to turn off plug-ins. Lots of good suggestions here: Photoshop: Basic Troubleshooting steps to fix most issues

  • Hello i have a unusual problem,anyway my iphone 4 wont turn on and when someone calls they hear ringing,but my phone doesent ring,so i open cimcas now ring off. Screen is just black,because it's turned off..Please help me to solve this problem..Thanks

    Hello i have a unusual problem,anyway my iphone 4 wont turn on and when  someone calls they hear ringing,but my phone doesent ring.So i poen simcase and now ring off. Screen is just  black,because it's turned off..Please help me to solve this  problem..Thanks

    As far as trying to power up your device, make sure it has a good charge and then hold the button on the top of the phone and the home button on the faceplate together until the apple appears on the screen.

  • I have installed latest update for itunes but it will not install and I receive a message Apple Mobile device failed to start. I have uninstalled and reinstalled itunes but have the same problem. I am using windows 7 and internet explorer

    I have downloaded the latest Itunes update, but it will not install and I receive a message 'apple mobile device failed to start'. I have uninstalled and reinstalled itunes but still have the same problem!

    Hi there willjay3976,
    You may find the troubleshooting steps in the article below helpful.
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    -Griff W. 

  • I tried dowloading Skype yesterday and my Safari browser crashed.  It gives the message "Safari quit while using the librooksbas.dylib plug-in.  I trashed Skype but still have the browser problem.  I also tried logging in under guest, and no Safari.

    I tried dowloading Skype yesterday and my Safari browser crashed.  It gives the message "Safari quit while using the librooksbas.dylib plug-in.  I trashed Skype but still have the browser problem.  I also tried logging in under guest, and still
    no Safari.

    Julie --
    Backing up QuickTime's advice --
    Unless your bank's website is insecure, you're fine.  Go up to the Safari "Search" bar and type in Rapport.  You'll be amazed.  It may  "work" on PCs, but definitely not Macs.  And it's not needed for Macs.

  • After I updated lion to 10.7.4, app store does not recognize my ID APPLE and it unable to connect me to app store in order to update/download apps? What have I to do? I have the same problem with mac mini e mac book air. Please help me!

    After I updated lion to 10.7.4, app store does not recognize my ID APPLE and it unable to connect me to app store in order to update/download apps? What have I to do? I have the same problem with mac mini e mac book air. Please help me!

    Your advice did not help me. I also installed 10.7.4 combo but the situation is the same.
    my internet connection is ok, mail is ok, but app store after 3 resets does not recognize my ID and it says "connection is not possible". Why? I have the same problem in both my mac mini late 2009 and mac book air 2010? Is it a problem of 10.7.4 update? I have to solve this problem and how can i return to 10.7.3 if my last backup was not with 10.7.3???thank you for your kind collaboration...

  • I can't send emails from Mail. I have three different accounts set up and have the same problem with all. The mail just sits in my outbox. All worked fine until Yosemite upgrade. Recent update has not fixed problem.

    I can't send emails from Mail. I have three different accounts set up and have the same problem with all. The mail just sits in my outbox. All worked fine until Yosemite upgrade. Recent update has not fixed problem.

    I have been experiencing the same problem. My mail app won't even open on my Late 2011 Macbook Pro. It will show as open, but the app will never actually show up.

Maybe you are looking for