title: Pure CSS Speech Bubble with Border
body: <p>So I'm working on a pure css speech bubble <a href="http://bit.ly/zlnngM">http://bit.ly/zlnngM</a> but I'd like to have the border surround the entire speech bubble as seen here <a href="http://bit.ly/zUgeZi">http://bit.ly/zUgeZi</a> . I'm using the following markup;</p>
  
  <pre><code>&lt;div class="speech-bubble"&gt;&lt;p&gt;This is a speech bubble created using only CSS. No images to be found here...&lt;/p&gt;&lt;/div
  </code></pre>
  
  <p>and I've so far styled it as follows;</p>
  
  <pre><code>.speech-bubble {
  margin: 3em;
  width: 320px;
  padding: 10px;
  background-color:rgba(250, 250, 250, 0.95);
  color: #666;
  font: normal 12px "Segoe UI", Arial, Sans-serif;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  border: 10px solid rgba(0,0,0,0.095);
  }
  
  .speech-bubble:before
  {
  content: "";
  border: solid 20px transparent; /* set all borders to 10 pixels width */
  border-top: 0; /* we do not need the top border in this case */
  border-bottom-color:rgba(250, 250, 250, 0.95);
  width: 0;
  height: 0;
  overflow: hidden;
  display: block;
  position: relative;
  top: -30px; /* border-width of the :after element + padding of the root element */
  margin: auto;
  }
  
  .speech-bubble p {
  margin-top: -15px;
  font-size: 1.25em;
  }
  </code></pre>
  
  <p>As you can see I can only add a border to the content box (.speech-bubble) but not the callout (.speech-bubble:before) My border will also need to be transparant. Not sure if this matters but it's something to bear in mind. Any advice?</p>