cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

              <p>Tooltip example using inline SVG containing a <a href="https://developer.mozilla.org/en-US/docs/Web/SVG/Element/foreignObject">foreignObject</a>.</p>
<p>Compared with a box with a CSS triangle, it could potentially have any shape.</p>
<p><span class="link">
  <a href="#">Hover me</a>

    <svg width="200px" height="100px" xmlns="http://www.w3.org/2000/svg" class="tooltip">
      <polyline points="5,20 90,20 100,5 110,20 195,20 195,95 5,95" class="tooltip-shape" />
      <foreignObject width="180" height="50" x="10" y="30" class="tooltip-contents">
        <p>This is HTML content which flows in its container, can contain <a href="#">links</a> or anything else.</p>

              body {
  font-family: Verdana, serif;
  text-align: center;
  font-size: 12px;
  max-width: 40em;
  margin: 0 auto;
.link {
  position: relative;
.tooltip {
  position: absolute;
  left: -100px;
  margin-left: 50%;
  top: 100%;
  /* Hide by default */
  height: 0;
  opacity: 0;
  -webkit-transition: opacity 0.2s, height 0 0.2s;
  -moz-transition: opacity 0.2s, height 0 0.2s;
  -o-transition: opacity 0.2s, height 0 0.2s;
  transition: opacity 0.2s, height 0 0.2s;
/* Show on hover */
.link:hover .tooltip {
  height: 100px;
  opacity: 1;
  -webkit-transition: opacity 0.2s, height 0;
  -moz-transition: opacity 0.2s, height 0;
  -o-transition: opacity 0.2s, height 0;
  transition: opacity 0.2s, height 0;
.tooltip-shape {
  fill: #FC3;
  stroke: #FC3;
  color: #333;
.tooltip-contents {
  color: #333;

Loading ..................