title: How to get divs and anchors stacked on top of each other with the same width
body: <p>For my website that I am making, I have this code:</p>
  
  <pre><code>.menu{      
  }
  
  .menu a{
      text-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
      color: #d7d7d7;
      font: bold 16px Arial,Helvetica,Sans-serif;
      text-decoration: none;
      border-radius: 10px;
      background-color: #444;
      padding: 5px 10px;
      text-align: center;
      -webkit-transition: all 0.3s ease 0s;
      -moz-transition: all 0.3s ease 0s;
      -o-transition: all 0.3s ease 0s;
      transition: all 0.3s ease 0s;
  }
  
  .menu a:hover{
      border: double 6px #00F;
      color: #00F;
      background-color: #FFF;
      font: bold 20px Arial,Helvetica,Sans-serif;
      text-decoration: underline;
      text-align: center;
  }
  
  .sidebar{
      width:220px;
      margin-top:8px;
      margin-left:3px;
      background-color:#CCC;
      border-radius:10px;
      padding:10px;
      clear:left;
      -moz-box-shadow: inset 0 0 5px 5px #888;
      -webkit-box-shadow: inset 0 0 5px 5px #888;
      box-shadow: inset 0 0 5px 5px #888;
  }
  
  .sidebar p{
      text-align: center;
  }
  </code></pre>
  
  <p>HTML code:</p>
  
  <pre><code>&lt;div class="sidebar"&gt;
      &lt;b style="color:#666;"&gt;Menu&lt;/b&gt;
      &lt;div class="menu"&gt;
          &lt;p&gt;&lt;a href="#"&gt;Profile&lt;/a&gt;&lt;/p&gt;
          &lt;p&gt;&lt;a href="#"&gt;Friends&lt;/a&gt;&lt;/p&gt;
          &lt;p&gt;&lt;a href="#"&gt;Community Service&lt;/a&gt;&lt;/p&gt;
          &lt;p&gt;&lt;a href="#"&gt;Messages&lt;/a&gt;&lt;/p&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>For some reason the only way I can position the anchors on top of each other like this is by putting them in paragraph tags, but I don't want that.  Here is a picture of how all that code looks:</p>
  
  <p><img src="https://i.stack.imgur.com/GAiq9.png" alt="Code Overview"></p>
  
  <p>I want the menu to look like the Log In and Create an Account button, but there is no difference between the CSS, the only thing that could be differentiated between them is that the div containing them is positioned in a table.  So I was wondering how I could achieve that same-width-and-height-as-the-ones-above-and-bellow-it kind of div.  Also I tried putting it into a table and that only squashed it together and took out the round edges (CSS display: table in the .menu and display: table-cell in the anchor also does not work because it squashes it).  Here is the rest of my code: <a href="http://pastebin.com/ZLS94ZvQ" rel="nofollow noreferrer">http://pastebin.com/ZLS94ZvQ</a> thanks for your help!</p>