title: CSS: Help with aligning div (expand - collapse) boxes next to each other
body: <p>I am having some trouble with aligning two div boxes next to each other;. Or more correctly, I have aligned my two “head” boxes next to each other but my problem is that I am using them as a expand-collapse container and those boxes will not align correctly.</p>
  
  <p>I am posting the entire code beneath and would be grateful if someone had a solution to this problem, which probably is not that difficult. And another problem is, that when I expand the hidden area the two boxes "resets" and again stand under each other.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  
  &lt;!-- Panel Slider for Contact --&gt;
  &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;
  
   &lt;!-- Expand Collapse --&gt;
      &lt;script type="text/javascript"&gt;$(function(){
  $("#mostrar1").click(function(event) {event.preventDefault();
                  $("#caja1").slideToggle();
                  });
  
  $("#caja1 a").click(function(event) {event.preventDefault();
                  $("#caja1").slideUp();
                  });
  $("#mostrar2").click(function(event) {event.preventDefault();
                  $("#caja2").slideToggle();
                  });
  
  $("#caja2 a").click(function(event) {event.preventDefault();
                  $("#caja2").slideUp();
                  });
  }); &lt;/script&gt; 
  
  &lt;style type="text/css"&gt;
  .slide-out-div {
         padding: 20px;
         width: 250px;
         background: #031F2F;
         margin: 0px;
  
      }
  
              #caja1 {
              width:30%;
              display: none;
              padding:5px;
              border:2px solid #FFFFFF;
              background-color:#99a8ff;
              }
  
              #mostrar1{
              display:block;
              width:30%;
              padding:5px;
              border:2px solid #FFFFFF;
              background-color:#0C415F;
              float: left;
              color: #FFFFFF;
              }           
  
              #caja2 {
              width:30%;
              display: none;
              padding:5px;
              border:2px solid #FFFFFF;
              background-color:#99a8ff;
              }
  
              #mostrar2{
              display:block;
              width:30%;
              padding:5px;
              border:2px solid #FFFFFF;
              background-color:#0C415F;
              float: left;
              color: #FFFFFF;
              }           
              }   
  
  &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
          &lt;a href="#" id="mostrar1"&gt;Private&lt;/a&gt;&lt;div style="display: none;" id="caja1"&gt;&lt;a href="#" class="close"&gt;[x]&lt;/a&gt;&lt;p&gt;Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren&lt;/p&gt;&lt;/div&gt;&lt;a href="#" id="mostrar2"&gt;Erhverv&lt;/a&gt;&lt;div style="display: none;" id="caja2"&gt;&lt;a href="#" class="close"&gt;[x]&lt;/a&gt;&lt;p&gt;Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren&lt;/p&gt;&lt;/div&gt;        
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Thanks
  Mestika</p>