cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-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 display="none" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="176" height="32" viewBox="0 0 176 32">
<g id="icon-home">
	<path class="" d="M32 18.451l-16-12.42-16 12.42v-5.064l16-12.42 16 12.42zM28 18v12h-8v-8h-8v8h-8v-12l12-9z"></path>
<g id="icon-pacman">
	<path class="" d="M30.148 5.588c-2.934-3.42-7.288-5.588-12.148-5.588-8.837 0-16 7.163-16 16s7.163 16 16 16c4.86 0 9.213-2.167 12.148-5.588l-10.148-10.412 10.148-10.412zM22 3.769c1.232 0 2.231 0.999 2.231 2.231s-0.999 2.231-2.231 2.231-2.231-0.999-2.231-2.231c0-1.232 0.999-2.231 2.231-2.231z"></path>
<g id="icon-location">
	<path class="original-svg-pin" d="M16 0c-5.523 0-10 4.477-10 10 0 10 10 22 10 22s10-12 10-22c0-5.523-4.477-10-10-10zM16 16.125c-3.383 0-6.125-2.742-6.125-6.125s2.742-6.125 6.125-6.125 6.125 2.742 6.125 6.125-2.742 6.125-6.125 6.125zM12.125 10c0-2.14 1.735-3.875 3.875-3.875s3.875 1.735 3.875 3.875c0 2.14-1.735 3.875-3.875 3.875s-3.875-1.735-3.875-3.875z"></path>
<g id="icon-menu">
	<path class="" d="M2 6h28v6h-28zM2 14h28v6h-28zM2 22h28v6h-28z"></path>

	<svg class="icon icon-home" viewBox="0 0 32 32" width="32" height="32">
    <use xlink:href="#icon-home"></use>
	<svg class="icon icon-pacman" viewBox="0 0 32 32" width="32" height="32">
    <use xlink:href="#icon-pacman"></use>
	<svg class="icon icon-location" viewBox="0 0 32 32" width="32" height="32">
    <use xlink:href="#icon-location"></use>
	<svg class="icon icon-menu" viewBox="0 0 32 32" width="32" height="32">
    <use xlink:href="#icon-menu"></use>

<p>Icons by <a href="https://icomoon.io">icomoon.io</a></p>
              svg { 
  rect { 
    fill: inherit; 

[class*="icon"] { 
  fill: red; 

.icon-menu { 
  fill: green; 

.original-svg-pin {
  fill: blue;

/* demo */
svg {
  vertical-align: middle;
  margin: 1em;

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.


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