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="flex-container">
  <button type="button" class="has-tooltip" aria-label="Close">&#x2715;</button>
              // Nice defaults
html, body {
  height: 100%;
  width: 100%;
.flex-container {
  width: 100%;
  height: 100%;
  display: flex;
button {
  background-color: #ECA400;
  background-image: linear-gradient(to bottom, #ECA400 0%, #EC0000 100%);
  border: 0;
  border-radius: 5px;
  box-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2) inset;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  height: 40px;
  margin: auto;
  padding: 10px;
  width: 100px;

// Styled hovers of additional descriptive content
.has-tooltip {
  position: relative;
.has-tooltip::before {
  background: #001D4A;
  border-radius: 5px;
  color: #FFF;
  content: attr(aria-label);
  display: inline-block;
  font-weight: normal;
  left: 50%;
  margin-top: (1px - 10px);
  opacity: 0;
  padding: 10px;
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: translate(-50%, 0%);
  white-space: nowrap;
  width: auto;
  z-index: 2;
  -webkit-transition: all .15s ease-out;
  transition: all .15s ease-out;
  .lt-ie9 & {
    // IE8 requires dimensions to be set to center tooltip, set sensible constraints here
    margin-left: -110px;
		margin-top: -41px;
    // titles that are longer than this will expand to fit but not be centered;
		min-width: 200px;
    text-align: center;
.has-tooltip:focus:before {
  opacity: 1;
  transform: translate(-50%, -100%);
.has-tooltip:after {
  border: 10px solid transparent;
  border-top-color: #001D4A;
  content: "";
  height: 0;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px - 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: translate(0, -100%);
  -webkit-transition: all 0s ease-out 0s;
  transition: all 0s ease-out 0s;
  width: 0;
  z-index: 1;
.has-tooltip:focus:after {
  opacity: 1;
  -webkit-transition: all .15s ease-out .1s;
  transition: all .15s ease-out .1s;
  transform: translate(0, 0);
Loading ..................