title: CSS positioning compatibility issues with IE
body: <p>I'm having a few issues with a client's website not displaying properly in IE.  I'm currently using IE 9 but there are a few bugs that still show up.  The link is www.zenhomecleaning.com/ny/staff.html and I'm using IE 9 on Windows Vista.</p>
  
  <p>The first issue I'm having is with div's not staying in the proper place.  The page looks okay on Google Chrome but when testing it on IE 9, two div's display improperly.</p>
  
  <p><img src="https://i.stack.imgur.com/zXdX3.jpg" alt="error 1"></p>
  
  <p>The container div is "rightpanel" and here's the HTML and CSS:</p>
  
  <pre><code>&lt;div id="rightPanel"&gt;
  
              &lt;div id="socialmedia"&gt;
                      &lt;div&gt;&lt;a href="http://facebook.com/zenhomeinc" target="_blank"&gt;&lt;span id="facebook"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div&gt;&lt;a href="http://twitter.com/zenhomeinc" target="_blank"&gt;&lt;span id="twitter"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div&gt;&lt;a href="http://www.youtube.com/user/zenhometherapy/videos" target="_blank"&gt;&lt;span id="youtube"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div&gt;&lt;a href="http://www.linkedin.com/company/1593810" target="_blank"&gt;&lt;span id="linkedin"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
  
              &lt;/div&gt;&lt;!-- end of #socialmedia --&gt;
  
                  &lt;br /&gt;
                  &lt;div id="customerlobby"&gt;&lt;a href="http://www.customerlobby.com/reviews/5095/zen-home-cleaning/" onclick=
                  "window.open('http://www.customerlobby.com/reviews/5095/zen-home-cleaning/', 'ReviewPage', 
                  'statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=540, height=575,left=570,top=200,screenX=570,screenY=200'); 
                  return false;" target="_blank"&gt;&lt;img src="https://www.customerlobby.com/ctrack-5095" border="0" style="display: none;" alt=
                  "Statistics" /&gt;&lt;img alt="Zen Home Cleaning Customer Reviews" src="https://www.customerlobby.com/logo-serve?id=791" border="0" /&gt;&lt;/a
                  &gt;&lt;!--End Customer Lobby--&gt;&lt;/div&gt;
  
                  &lt;div id="phone"&gt;
                    &lt;h3&gt;Contact Us Today&lt;/h3&gt;&lt;h1&gt;212.462.2566&lt;/h1&gt;&lt;/div&gt;           
  
          &lt;/div&gt;&lt;!-- end of #rightPanel --&gt;
  </code></pre>
  
  <p>and the CSS:</p>
  
  <pre><code>#header #rightPanel {
      width: 500px;
      height: 185px;
      margin: 5px 7px 0 0;
      float: right;
  }
      #socialmedia {
          width: 153px;
          height: 26px;
          float: right;
          margin: 10px -28px 0 0;
          padding-right: 0;
      }
          #socialmedia #facebook {
              background: url(../img/icon_facebook.jpg);
              width: 26px;
              height: 26px;
              margin: 0 3px 0;
              float: left;
          }
          #socialmedia #twitter {
              background: url(../img/icon_twitter.jpg);
              width: 26px;
              height: 26px;
              margin: 0 3px 0;
              float: left;
          }
          #socialmedia #youtube {
              background: url(../img/icon_youtube.jpg);
              width: 26px;
              height: 26px;
              margin: 0 3px 0 3px;
              float: left;
          }
          #socialmedia #linkedin {
              background: url(../img/icon_linkedin.jpg);
              width: 26px;
              height: 26px;
              float: left;
              margin: 0 0 0 3px;
          }
          #rightPanel #customerlobby {
              width: 100%;
              height: 70px;
              margin: 12px 0 0 0;
              float: right;
              text-align: right;
          }
  
      #header #phone {
          width: 220px;
          float: right;
          text-align: right;
      }
          #header #phone h1 {
              font-family: AvenirHeavy, Arial, Helvetica, sans-serif;
              font-size: 22px;
              font-weight: 600;
              letter-spacing: .1em;
          }
          #header #phone h3 {
              font-size: 14px;
              font-weight: 400;
              letter-spacing: .1em;
              margin-bottom: -15px;
          }
  </code></pre>
  
  <p>This div should be lined up with the right side of the menu.</p>
  
  <p>And for the content div, here's the HTML and CSS..</p>
  
  <pre><code>    &lt;div id="main"&gt;
              &lt;div id="content"&gt;&lt;!-- InstanceBeginEditable name="content" --&gt;
              &lt;h1&gt;Meet the Staff&lt;/h1&gt;
  
                  &lt;div id="staff"&gt;
  
  
  
                      &lt;div class="title"&gt;Management&lt;/div&gt;
  
                      &lt;div class="row-2"&gt;
                          &lt;div class="staffPhoto"&gt;&lt;h4&gt;Operations Manager&lt;/h4&gt;&lt;a     class="various fancybox.iframe" rel="staff" href=
                          "staff/marina.html" &gt;&lt;img src="staff/img/marina-thumb.jpg" alt="Green Cleaning Services, Marina Gospodinova" /&gt;&lt;p&gt;Marina Gospodinova&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
                          &lt;div class="staffPhoto"&gt;&lt;h4&gt;Field Manager&lt;/h4&gt;&lt;a class="various fancybox.iframe" rel="staff" href=
                          "staff/mariyana.html" &gt;&lt;img src="staff/img/mariyana-thumb.jpg" alt="Green Cleaning Services, Mariyana Nedelcheva" /&gt;&lt;p&gt;Mariyana Nedelcheva&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
  
                      &lt;/div&gt;
  
  
  
  
  
                      &lt;div class="title"&gt;Client Services&lt;/div&gt;
  
                      &lt;div class="row-2"&gt;
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/lucille.html" &gt;&lt;img src=
                      "staff/img/lucille-thumb.jpg" alt="Green Cleaning Services, Lucille Manariotis" /&gt;&lt;p&gt;Lucille Manariotis&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
  
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href=
                          "staff/akia.html" &gt;&lt;img src="staff/img/akia-thumb.jpg" alt="Green Cleaning Services, Akia Ridley" /&gt;&lt;p&gt;Akia Ridley&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
  
                      &lt;/div&gt;
  
                      &lt;div style="margin-bottom: -50px; "&gt;&lt;/div&gt;
  
  
  
  
  
                      &lt;div class="title"&gt;Quality Control Services&lt;/div&gt;
                      &lt;div class="row-4"&gt;
  
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/carlos.html" &gt;&lt;img src="staff/img/carlos-thumb.jpg" alt="Green Cleaning Services, " /&gt;&lt;p&gt;Carlos&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
  
                      &lt;div style="margin-bottom: -50px; "&gt;&lt;/div&gt;
  
                      &lt;div class="title"&gt;Cleaning Consultants&lt;/div&gt;
                      &lt;div class="row-6"&gt;
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/alesha.html" &gt;&lt;img src="staff/img/alesha-thumb.jpg" alt="Green Cleaning Services, " /&gt;&lt;p&gt;Alesha&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/awilda.html" &gt;&lt;img src="staff/img/awilda-thumb.jpg" alt="Green Cleaning Services, " /&gt;&lt;p&gt;Awilda&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;                    
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/beverly.html" &gt;&lt;img src="staff/img/beverly-thumb.jpg" alt="Green Cleaning Services, " /&gt;&lt;p&gt;Beverly&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/carlos.html" &gt;&lt;img src="staff/img/carlos-thumb.jpg" alt="Green Cleaning Services, " /&gt;&lt;p&gt;Carlos&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/christin.html" &gt;&lt;img src="staff/img/christin-thumb.jpg" alt="Green Cleaning Services, " /&gt;&lt;p&gt;Christin&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/crystal.html" &gt;&lt;img src="staff/img/crystal-thumb.jpg" alt="Green Cleaning Services, " /&gt;&lt;p&gt;Crystal&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/daphne.html" &gt;&lt;img src="staff/img/daphne-thumb.jpg" alt="Green Cleaning Services, " /&gt;&lt;p&gt;Daphne&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/denise.html" &gt;&lt;img src="staff/img/denise-thumb.jpg" alt="Green Cleaning Services, " /&gt;&lt;p&gt;Denise&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/francis.html" &gt;&lt;img src="staff/img/francis-thumb.jpg" alt="Green Cleaning Services, " /&gt;&lt;p&gt;Francis&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/glenda.html" &gt;&lt;img src="staff/img/glenda-thumb.jpg" alt="Green Cleaning Services, " /&gt;&lt;p&gt;Glenda&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/iris.html" &gt;&lt;img src="staff/img/iris-thumb.jpg" alt="Green Cleaning Services, " /&gt;&lt;p&gt;Iris&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/ivelisse.html" &gt;&lt;img src="staff/img/ivelisse-thumb.jpg" alt="Green Cleaning Services, " /&gt;&lt;p&gt;Ivelisse&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/jovana.html" &gt;&lt;img src="staff/img/jovana-thumb.jpg" alt="Green Cleaning Services, " /&gt;&lt;p&gt;Jovana&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/kashmire.html" &gt;&lt;img src="staff/img/kashmire-thumb.jpg" alt="Green Cleaning Services, " /&gt;&lt;p&gt;Kashmire&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/leyda.html" &gt;&lt;img src="staff/img/leyda-thumb.jpg" alt="Green Cleaning Services, " /&gt;&lt;p&gt;Leyda&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/lissy.html" &gt;&lt;img src="staff/img/lissy-thumb.jpg" alt="Green Cleaning Services, " /&gt;&lt;p&gt;Lissy&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/ljumnije.html" &gt;&lt;img src="staff/img/ljumnije-thumb.jpg" alt="Green Cleaning Services, " /&gt;&lt;p&gt;Ljumnije&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/marina2.html" &gt;&lt;img src="staff/img/marina2-thumb.jpg" alt="Green Cleaning Services, " /&gt;&lt;p&gt;Marina&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/mary.html" &gt;&lt;img src="staff/img/mary-thumb.jpg" alt="Green Cleaning Services, " /&gt;&lt;p&gt;Mary&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/mildred.html" &gt;&lt;img src="staff/img/mildred-thumb.jpg" alt="Green Cleaning Services, " /&gt;&lt;p&gt;Mildred&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/miquel.html" &gt;&lt;img src="staff/img/miquel-thumb.jpg" alt="Green Cleaning Services, " /&gt;&lt;p&gt;Miquel&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/mirjeta.html" &gt;&lt;img src="staff/img/mirjeta-thumb.jpg" alt="Green Cleaning Services, " /&gt;&lt;p&gt;Mirjeta&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/nefertiti.html" &gt;&lt;img src="staff/img/nefertiti-thumb.jpg" alt="Green Cleaning Services, " /&gt;&lt;p&gt;Nefertiti&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/raina.html" &gt;&lt;img src="staff/img/raina-thumb.jpg" alt="Green Cleaning Services, " /&gt;&lt;p&gt;Raina&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/reina.html" &gt;&lt;img src="staff/img/reina-thumb.jpg" alt="Green Cleaning Services, " /&gt;&lt;p&gt;Reina&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/teresa.html" &gt;&lt;img src="staff/img/teresa-thumb.jpg" alt="Green Cleaning Services, " /&gt;&lt;p&gt;Teresa&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/torra.html" &gt;&lt;img src="staff/img/torra-thumb.jpg" alt="Green Cleaning Services, " /&gt;&lt;p&gt;Torra&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/vanessa.html" &gt;&lt;img src="staff/img/vanessa-thumb.jpg" alt="Green Cleaning Services, " /&gt;&lt;p&gt;Vanessa&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/victor.html" &gt;&lt;img src="staff/img/victor-thumb.jpg" alt="Green Cleaning Services, " /&gt;&lt;p&gt;Victor&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/yahaira.html" &gt;&lt;img src="staff/img/yahaira-thumb.jpg" alt="Green Cleaning Services, " /&gt;&lt;p&gt;Yahaira&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div class="staffPhoto"&gt;&lt;a class="various fancybox.iframe" rel="staff" href="staff/yahaira2.html" &gt;&lt;img src="staff/img/yahaira2-thumb.jpg" alt="Green Cleaning Services, " /&gt;&lt;p&gt;Yahaira&lt;/p&gt;&lt;/a&gt;&lt;/div&gt;
  
                       &lt;/div&gt;
  
                       &lt;div class="spacerXL"&gt;&lt;/div&gt;&lt;div class="spacerXL"&gt;&lt;/div&gt;&lt;div class="spacerXL"&gt;&lt;/div&gt;&lt;div class="spacerXL"&gt;&lt;/div&gt;
  
                  &lt;/div&gt;&lt;!-- end of #staff"--&gt;
    &lt;/script&gt;&lt;!-- InstanceEndEditable --&gt;&lt;/div&gt;
              &lt;!-- end of #content --&gt;
          &lt;/div&gt;&lt;!-- end of #main --&gt;
  </code></pre>
  
  <p>and CSS:</p>
  
  <pre><code>#main {
  display: block;
  width: 100%;
  max-width: 990px;
  margin: 0 auto;
  padding-top: 50px;
  }
  
  #main #content {
      width: 95%;
      max-width: 990px;
      margin: 0 auto;
  }
  
  #main #content .small {
      font-size: 11px;
  }
  
      #main #content p {
          font-family: 'Open Sans', Arial, Helvetica, sans-serif;
          font-size: 14px;
          letter-spacing: .1em;
      }
  </code></pre>
  
  <p>I've tried adjusting the div's and trying different styles to align the content properly but to no avail.  Would really appreciate any guidance on these two issues I'm having.  Much thanks!</p>