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 Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

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.

            
              <div class="container">
  Here comes some text. <span class='top-QuickTip' data-quicktip='This is a top tooltip'>Hover to see top tooltip</span>. The story continues and here we can see another tip, right over word "<span class='top-QuickTip' data-quicktip='Yup, right here. No js, no images'>tip</span>"
  
  <div class="upd">update: <a target="_blank" href="https://codepen.io/deineko/pen/YZeQJP">some more options</a></div>
</div>
            
          
!
            
              body {background:#eca}
.container {
  padding: 64px;max-width:960px;
  position:relative;margin:auto;
  text-align:center;
  box-sizing:border-box;
}
.top-QuickTip {
  position: relative
}
.top-QuickTip:before {
  content: attr(data-quicktip);
  position: absolute;
  background: #444;
  top: -3.4em;
  left: 50%;
  text-indent: 0;
  color: #fff;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 3px;
  white-space: nowrap;
  -webkit-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
  opacity: 0;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  font-weight: bold;
  -webkit-transition: all 0.1s ease-in-out;
  transition: all 0.1s ease-in-out;
  box-shadow:0 1px 3px rgba(0,0,0,0.35)
}

.top-QuickTip:after {
  content: '';
  display: block;
  height: 0;
  width: 0;
  border-style: solid;
  border-color: #444 transparent transparent transparent;
  padding: 0;
  border-width: 10px 5px 0 5px;
  position: absolute;
  left: 50%;
  top: -0.7em;
  -webkit-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
  opacity: 0;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  -webkit-transition: all 0.1s ease-in-out;
  transition: all 0.1s ease-in-out;
}

.top-QuickTip:hover:before,
.top-QuickTip:hover:after {
  opacity: 1;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"
}


/*just to highlight tipped text, not neccesary*/

.top-QuickTip {
  border-bottom:1px dotted
}
.upd {text-align:center;padding:1.5em;margin:1.5em;background-color:rgba(255,255,255,0.15)}
.upd a {color:#3bb4e5}
            
          
!
999px
Loading ..................

Console