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.

              <svg style="position: absolute; width: 0; height: 0;" width="0" height="0" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<symbol id="icon-checkmark" viewBox="0 0 16 16">
<path class="path1" d="M13.5 2l-7.5 7.5-3.5-3.5-2.5 2.5 6 6 10-10z"></path>

<p>Example 2: Standalone Icon, Decorative</p> 
<div class="icon success">
 <svg aria-hidden="true">
   <use xlink:href="#icon-checkmark"></use>
 Success! Your order went through.

  font-size: 30px;
  font-family: Helvetica, Arial;
  color: #444;
	display: inline-block;
  color: rebeccapurple;
  fill: rebeccapurple;
.icon svg {
	width: 1em;
	height: 1em;
  color: blue;
  fill: blue;
  text-decoration: none;
  padding: 5px;
a:focus, a:hover{
  background: lightgray;
  outline: 3px solid blue; 
  color: green;
  fill: green;
  position: relative;
  font-size: .5em;
  padding: 0 2px;
  font-weight: bold;
  border: .2em solid lightgray;
  border-radius: 30%;
  background: lightgray;
  position: absolute;
  top: -10px;
  right: 2px;
  position: absolute!important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  clip-path: polygon(0 0,0 0,0 0,0 0);

@media screen and (-ms-high-contrast: active) {
  .icon svg{
    fill: green;

@media screen and (-ms-high-contrast: black-on-white) {
   .icon svg{
    fill: #333;
@media screen and (-ms-high-contrast: white-on-black) {
 .icon svg{
    fill: #fff;
Loading ..................