title: CSS tooltip getting cut off
body: <p>I have a CSS tooltip that is being cut off when the hovered item is too close to the edge of the content area. See the links towards the bottom of this post: <a href="http://blog.betbright.com/top-stories/manchester-united-v-club-brugge-betting-preview/" rel="nofollow">http://blog.betbright.com/top-stories/manchester-united-v-club-brugge-betting-preview/</a></p>
  
  <p>Here is the code I'm using for the tooltip:</p>
  
  <pre><code>a.tooltip {
    position: relative;
    display: inline;
  }
  a.tooltip span {
    position: absolute;
    width:110px;
    color: #FFFFFF;
    background: #00A1E0;
    height: 30px;
    line-height: 30px;
    text-align: center;
    visibility: hidden;
    border-radius: 6px;
  }
  a.tooltip span:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    width: 0; height: 0;
    border-top: 8px solid #00A1E0;
    border-right: 8px solid transparent;
    border-left: 8px solid transparent;
  }
  a:hover.tooltip span {
    visibility: visible;
    opacity: 1;
    bottom: 30px;
    left: 100%;
    margin-left: -76px;
    z-index: 999;
  }
  </code></pre>
  
  <p>Any solutions you can recommend to stop the tooltip being cut would be appreciated.</p>
  
  <p>Thanks,
  Paul</p>