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.

            
              <p>Based on my blog post about <a href="https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4" target="_blank">SVG icon system alignment</a></p>
<h1>
  64px ABC
  <div class="icon baseline">
    <svg width="48" height="48" viewBox="0 0 48 48">
       <path id="icon-info" d="M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z">
      </path>
    </svg>
  </div>
  xyz
  <div class="icon baseline">
    <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48">
      <path id="icon-open" d="M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.51 29.66l2.83 2.83L38 12.83V20h4V6H28z"/>
    </svg>
  </div>
</h1>
<h2>
  48px ABC
  <div class="icon baseline">
    <svg width="48" height="48" viewBox="0 0 48 48">
       <use xlink:href="#icon-info">
    </svg>
  </div>
  xyz
  <div class="icon baseline">
    <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48">
      <use xlink:href="#icon-open">
    </svg>
  </div>
</h2>
<h3>
  32px ABC
  <div class="icon baseline">
    <svg width="48" height="48" viewBox="0 0 48 48">
       <use xlink:href="#icon-info">
    </svg>
  </div>
  xyz
  <div class="icon baseline">
    <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48">
      <use xlink:href="#icon-open">
    </svg>
  </div>
</h3>
<h4>
  24px ABC
  <div class="icon baseline">
    <svg width="48" height="48" viewBox="0 0 48 48">
       <use xlink:href="#icon-info">
    </svg>
  </div>
  xyz
  <div class="icon baseline">
    <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48">
      <use xlink:href="#icon-open">
    </svg>
  </div>
</h4>
<h5>
  16px ABC
  <div class="icon baseline">
    <svg width="48" height="48" viewBox="0 0 48 48">
       <use xlink:href="#icon-info">
    </svg>
  </div>
  xyz
  <div class="icon baseline">
    <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48">
      <use xlink:href="#icon-open">
    </svg>
  </div>
</h5>
<h6>
  12px ABC
  <div class="icon baseline">
    <svg width="48" height="48" viewBox="0 0 48 48">
       <use xlink:href="#icon-info">
    </svg>
  </div>
  xyz
  <div class="icon baseline">
    <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48">
      <use xlink:href="#icon-open">
    </svg>
  </div>
</h6>
    
    
    <div class="icon">
    <svg width="48" height="48" viewBox="0 0 48 48">
       <path id="icon-info" d="M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z">
      </path>
    </svg>
  </div>
            
          
!
            
              /*SVG ICON SYSTEM*/
.icon {
    display: inline-flex;
    align-self: center;
}

.icon svg, .icon img {
    height: 1em;
    width: 1em;
    fill: currentColor;
}

.icon.baseline svg, .icon img {
    top: .125em;
    position: relative;
}


/*-----------------*/
/*-----------------*/
/*-----------------*/
/*PROTOTYPE EXAMPLE*/
body {
  padding:8px;
  font-size:16px;
  font-family:arial;

}
h1,h2,h3,h4,h5,h6 {
    margin:0 0 16px 0;
    padding:0;
    line-height:1;
    font-weight:normal;
  position:relative;
}
/*H Tag Sizing*/
h1 {
  font-size:64px;
}
h2 {
  font-size:48px;
}
h3 {
  font-size:32px;
}
h4 {
  font-size:24px;
}
h5 {
  font-size:16px;
}
h6 {
  font-size:12px;
}
p {
  margin-top:0;
  margin-bottom:8px;
}

/*Red Lining*/
h1:after, h2:after, h3:after, h4:after, h5:after, h6:after {
  width:100%;
  height:1px;
  content:"";
  position:absolute;
  bottom:.145833em;
  left:0;
  background-color:rgba(255, 0, 0, 0.23);
  z-index:-100;
}
h1:before, h2:before, h3:before, h4:before, h5:before, h6:before {
    width:100%;
  height:1px;
  content:"";
  position:absolute;
  top:.27em;
  left:0;
  background-color:rgba(255, 0, 0, 0.23);
  z-index:-100;
}
            
          
!
999px
Loading ..................

Console