title: overlaying a jquery draggable div
body: <p>I'm trying to make an optional draggable div, which shows up at some condition. This does work for me. The Initial location is fine, but the new div pushes the panel below further below. Now I want the draggable panel to be displayed on top of the rest of the panels (without reshuffling the existing panels).
  The code is below, and I put an example with js libraries, and css on my website: <a href="http://www.dijkmeijer.com/drag.html" rel="nofollow noreferrer">link text</a> (not sure what the stackoverflow policy is on this, as I'll probably won't leave it there forever).</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Desgin Mayor&lt;/title&gt;
  &lt;style type="text/css"&gt;
  #draggable { width: 120px; padding: 0.5em; border: 3px solid red; }
  &lt;/style&gt;
  &lt;script type="text/javascript"&gt;
   &lt;/script&gt;
  
  
  
  
  &lt;link rel="stylesheet" href="css/designmayor.css" type="text/css" media="screen, projection"/&gt;
  &lt;script type="text/javascript" src="js/jquery-1.4.2.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="js/jquery.ui.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  $(function() {
          $("#draggable").draggable();
          $("#draggable").hide();
  });
  function test() {
      for (i=0;i&lt;10;i++) {
            $('&lt;div class="inputline"&gt;Line ' + i + '&lt;/div&gt;').appendTo('#draggable');
      }
      $('#draggable').show();
  }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div id="header"&gt;&lt;div class="headertext"&gt;Design Mayor&lt;/div&gt;&lt;div id="draggable" class="ui-widget-content inputpanel"&gt;
   &lt;p&gt;Input Controls&lt;/p&gt;
  
  &lt;/div&gt;&lt;/div&gt;
  
  &lt;div class="designmenu"&gt;
   &lt;ul class="menu"&gt;
    &lt;li&gt;&lt;a href="javascript:test()"&gt;Press me&lt;/a&gt;&lt;/li&gt;
   &lt;/ul&gt;
  &lt;/div&gt;
  &lt;div id="contentscontainer"&gt;
  &lt;div id="designpanel"&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The relevant css I'm currently using:</p>
  
  <pre><code>element.style  {
     display:block;
     position:relative;
  }
  #draggable {
     border:3px solid red;
     padding:0.5em;
     width:120px;
  }
  drag.html (line 5)
  .ui-widget-content {
     background:url("images/ui-bg_flat_75_ffffff_40x100.png") repeat-x scroll 50% 50% #FFFFFF;
     border:1px solid #AAAAAA;
     color:#222222;
  }
  designmayor.css (line 62)
  .inputpanel {
    border:1px solid #FF0000;
    display:inline;
    float:right;
    font-size:65%;
    left:10px;
    width:7%;
    z-index:5;
  }
  </code></pre>
  
  <p>Any help is greatly appreciated</p>