<a href="#" target="_blank" data-tip="Hello" class="tooltip">CSS Tooltip! Hover me!</a>
body{
  max-width:1000px;
  margin:10rem;
}

.tooltip{
  position:relative;
  display: inline;
}

.tooltip:hover:after{
  background: #444;
  border-radius: 3px;
  color: #fff;
  content: attr(data-tip);
  font-size: 13px;
  padding: 8px;
  bottom:2.4rem;
  left:35%;
  position: absolute;
}
.tooltip:hover:before{
  border: solid;
  border-color: #444 transparent;
  border-width: 12px 6px 0 6px;
  content: "";
  left: 45%;
  bottom: 30px;
  position: absolute;
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.