title: css border around two divs
body: <p>Hello guys need your help by merging two <code>&lt;div&gt;</code>s' borders. Here is what I  want to get and what I've gotten until now:
  <a href="http://i.stack.imgur.com/46Y1f.jpg" rel="nofollow">enter image description here</a>
  and this is what i want to do <a href="http://i.stack.imgur.com/9Lvgy.jpg" rel="nofollow">enter image description here</a></p>
  
  <p>Could someone please tell me how to do so? Here is my code if it helps something: </p>
  
  <p>css : </p>
  
  <pre><code>#plink {
  
      position: relative;
      width: 200px;
      float: left;
  }
  
  #open {
  
      border-top: 1px solid black;
      border-bottom: 1px solid black;
      border-left: 1px solid black;
      width: 200px;
      text-align: center;
      line-height: 50px;
  
  }
  
  #closed {
      border: 1px solid black;
      width: 200px;
      text-align: center;
      line-height: 50px;
  
  }
  
  #closed:hover a {
      display: block;
  }
  
  
  #open:hover a {
      display: block;
  }
  
  #pbase {
  
      border: 1px solid black;
      position:relative;
      width: 600px;
      height: 300px;
      float: left;
  }
  </code></pre>
  
  <p>and html :</p>
  
  <pre><code>&lt;div id="plink"&gt;
  &lt;div id="open"&gt;My details&lt;/div&gt;
  &lt;div id="closed"&gt;&lt;a href="ads.php"&gt;My ads&lt;/a&gt;&lt;/div&gt;
  &lt;div id="closed"&gt;&lt;a href="fav.php"&gt;Favorites&lt;/a&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div id="pbase"&gt;&lt;/div&gt;  
  </code></pre>