Pen Settings

HTML

CSS

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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

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.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <svg class="icons-social">
    <symbol id="facebook" viewBox="0 0 24 24" role="img" aria-labelledby="title-facebook">
        <title id="title-facebook" lang="en">Facebook</title>
        <desc>Facebook logo</desc>
        <rect x="0" y="0" width="24" height="24"></rect>
        <path d="M15 8h-1.3c-.5 0-.7.2-.7.8V10h2l-.2 2H13v7h-3v-7H8v-2h2V7.7c0-1.8.9-2.7 3-2.7h2z" fill="currentColor"></path>
    </symbol>
    <symbol id="flickr" viewBox="0 0 24 24" role="img" aria-labelledby="title-flickr">
        <title id="title-flickr">Flickr</title>
        <desc>Flickr logo</desc>
        <rect x="0" y="0" width="24" height="24"></rect>
        <path d="M14.9 7.9A4.1 4.1 0 0 0 12 9.1a4.1 4.1 0 1 0 0 5.7 4.1 4.1 0 1 0 2.9-6.9zm0 7a2.9 2.9 0 1 1 2.9-2.9 2.9 2.9 0 0 1-2.9 2.9z" fill="currentColor"></path>
    </symbol>
    <symbol id="googleplus" role="img" viewBox="0 0 24 24" aria-labelledby="title-googleplus">
        <title id="title-googleplus">Google Plus</title>
        <desc>Google Plus logo</desc>
        <rect x="0" y="0" width="24" height="24"></rect>
        <path d="M9.1 11.4v1.4h2.3a2.2 2.2 0 0 1-2.3 1.8 2.6 2.6 0 0 1 0-5.2 2.3 2.3 0 0 1 1.6.6l1.1-1a3.9 3.9 0 0 0-2.7-1.1 4.1 4.1 0 1 0 0 8.2 3.8 3.8 0 0 0 3.9-4 3.7 3.7 0 0 0-.1-.7zm8.2 0V9.7h-1.2v1.8h-1.8v1.2h1.8v1.8h1.2v-1.9H19v-1.2z" fill="currentColor"></path>
    </symbol>
    <symbol id="instagram" role="img" viewBox="0 0 24 24" aria-labelledby="title-instagram">
        <title id="title-instagram">Instagram</title>
        <desc>Instagram logo</desc>
        <rect x="0" y="0" width="24" height="24"></rect>
        <path d="M15.7 7.4a.8.8 0 1 0 .8.8.8.8 0 0 0-.8-.8zM19 9.1A3.9 3.9 0 0 0 14.9 5H9.1A3.9 3.9 0 0 0 5 9.1v5.8A3.9 3.9 0 0 0 9.1 19h5.8a3.9 3.9 0 0 0 4.1-4.1V9.1zm-1.3 5.7a2.6 2.6 0 0 1-2.9 2.9H9.2a2.6 2.6 0 0 1-2.9-2.9V9.2a2.6 2.6 0 0 1 2.9-2.9h5.7a2.6 2.6 0 0 1 2.9 2.9V12c0 1.8-.1 2.1-.1 2.8zM12 8.4a3.6 3.6 0 1 0 3.6 3.6A3.6 3.6 0 0 0 12 8.4zm0 5.9a2.3 2.3 0 1 1 2.3-2.3 2.3 2.3 0 0 1-2.3 2.3z" fill="currentColor"></path>
    </symbol>
    <symbol id="linkedin" role="img" viewBox="0 0 24 24" aria-labelledby="title-linkedin">
        <title id="title-linkedin">LinkedIn</title>
        <desc>LinkedIn logo</desc>
        <rect x="0" y="0" width="24" height="24"></rect>
        <path d="M9 6.9A1.1 1.1 0 1 0 10.1 8 1.1 1.1 0 0 0 9 6.9zM8 16h2v-6H8zm5-4.9V10h-2v6h2v-2.9c0-1.7 2-1.9 2 0V16h2v-3.4c0-3.2-3.1-3.1-4-1.5z" fill="currentColor"></path>
    </symbol>
    <symbol id="pinterest" role="img" viewBox="0 0 24 24" aria-labelledby="title-pinterest">
        <title id="title-pinterest">Pinterest</title>
        <desc>Pinterest logo</desc>
        <rect x="0" y="0" width="24" height="24"></rect>
        <path d="M12 19a7 7 0 0 1-2.1-.3 7.8 7.8 0 0 0 .9-1.8l.4-1.7a1.9 1.9 0 0 0 1.6.8c2.1 0 3.6-1.9 3.6-4.4a4.1 4.1 0 0 0-4.3-4c-3 0-4.6 2-4.6 4.2A3.1 3.1 0 0 0 9 14.5c.1.1.2 0 .2-.1l.2-.8a.2.2 0 0 0 0-.2 2.7 2.7 0 0 1-.5-1.6 3 3 0 0 1 3.2-3 2.8 2.8 0 0 1 2.9 2.8c0 1.9-1 3.2-2.2 3.2a1 1 0 0 1-1-1.3 14.1 14.1 0 0 0 .6-2.3.9.9 0 0 0-.9-1c-.7 0-1.3.7-1.3 1.7a2.5 2.5 0 0 0 .2 1l-.8 3.5a6.7 6.7 0 0 0 0 2 7 7 0 1 1 2.4.6z" fill="currentColor"></path>
    </symbol>
    <symbol id="rss" role="img" viewBox="0 0 24 24" aria-labelledby="title-rss">
        <title id="title-rss">RSS</title>
        <desc>RSS logo</desc>
        <rect x="0" y="0" width="24" height="24"></rect>
        <path d="M8.6 13.8a1.6 1.6 0 1 0 1.6 1.6 1.6 1.6 0 0 0-1.6-1.6zM7 5v2.4a9.6 9.6 0 0 1 9.6 9.6H19A12 12 0 0 0 7 5zm0 4.1v2.4a5.6 5.6 0 0 1 5.5 5.5h2.4A8 8 0 0 0 7 9.1z" fill="currentColor"></path>
    </symbol>
    <symbol id="snapchat" role="img" viewBox="0 0 24 24" aria-labelledby="title-snapchat">
        <title id="title-snapchat">Snapchat</title>
        <desc>Snapchat logo</desc>
        <rect x="0" y="0" width="24" height="24"></rect>
        <path d="M17.1 16.5a5.1 5.1 0 0 0-.2.7c-.1.3-.4.3-.7.2H15c-.8.1-1.6 1.3-3 1.3s-2.2-1.3-3-1.4a4.8 4.8 0 0 0-1.6.1.3.3 0 0 1-.3-.2 5.1 5.1 0 0 0-.2-.7c-.6-.1-1.8-.3-1.9-.9a.3.3 0 0 1 .2-.3c1.9-.3 3.1-2.4 2.9-2.9s-.7-.4-1-.5-.7-.6-.7-.8a.7.7 0 0 1 .7-.5c.3 0 .8.4 1.1.2a8.2 8.2 0 0 1 .2-3.2A3.8 3.8 0 0 1 12 5.4a3.9 3.9 0 0 1 3.6 2.2 8.2 8.2 0 0 1 .2 3.2c.4.2.8-.2 1.1-.2s.7.2.7.5-.2.5-.7.7-.8.2-1 .5 1 2.6 2.9 2.9a.3.3 0 0 1 .2.3c0 .7-1.3.9-1.9 1z" fill="currentColor"></path>
    </symbol>
    <symbol id="twitter" role="img" viewBox="0 0 24 24" aria-labelledby="title-twitter">
        <title id="title-twitter">Twitter</title>
        <desc>Twitter logo</desc>
        <rect x="0" y="0" width="24" height="24"></rect>
        <path d="M18.1 9.6a8.2 8.2 0 0 1-12.6 7.3 5.8 5.8 0 0 0 4.3-1.2 2.9 2.9 0 0 1-2.7-2 2.9 2.9 0 0 0 1.3 0 2.9 2.9 0 0 1-2.3-2.9 2.9 2.9 0 0 0 1.3.4 2.9 2.9 0 0 1-.9-3.8 8.2 8.2 0 0 0 5.9 3 2.9 2.9 0 0 1 4.9-2.6 5.7 5.7 0 0 0 1.8-.8 2.9 2.9 0 0 1-1.3 1.6l1.6-.5a5.8 5.8 0 0 1-1.3 1.5z" fill="currentColor"></path>
    </symbol>
    <symbol id="youtube" role="img" viewBox="0 0 24 24" aria-labelledby="title-youtube">
        <title id="title-youtube">YouTube</title>
        <desc>YouTube logo</desc>
        <rect x="0" y="0" width="24" height="24"></rect>
        <path d="M16.4 7.1c-2.1-.1-6.7-.1-8.8 0S5 8.4 5 12s.3 4.7 2.6 4.9 6.8.1 8.9 0S19 15.6 19 12s-.3-4.7-2.6-4.9zM10 14.3V9.7l4.9 2.3z" fill="currentColor"></path>
    </symbol>
</svg>
<div class="sprite-svg">

    <div class="maroon">

        <ul>
            <li>
                <a href="#" title="Visit us on Facebook">
                    <svg>
                        <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#facebook" class="facebook"></use>
                    </svg>
                </a>
            </li>
            <li>
                <a href="#" title="Follow us on Twitter">
                    <svg>
                        <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#twitter" class="twitter"></use>
                    </svg>
                </a>
            </li>
            <li>
                <a href="#">
                    <svg>
                        <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#youtube" class="youtube"></use>
                    </svg>
                </a>
            </li>
            <li>
                <a href="#">
                    <svg>
                        <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#flickr" class="flickr"></use>
                    </svg>
                </a>
            </li>
            <li>
                <a href="#">
                    <svg>
                        <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#googleplus" class="googleplus"></use>
                    </svg>
                </a>
            </li>
            <li>
                <a href="#">
                    <svg>
                        <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#instagram" class="instagram"></use>
                    </svg>
                </a>
            </li>
            <li>
                <a href="#">
                    <svg>
                        <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#linkedin" class="linkedin"></use>
                    </svg>
                </a>
            </li>
            <li>
                <a href="#">
                    <svg>
                        <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#rss" class="rss"></use>
                    </svg>
                </a>
            </li>
            <li>
                <a href="#">
                    <svg>
                        <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#pinterest" class="pinterest"></use>
                    </svg>
                </a>
            </li>
            <li>
                <a href="#">
                    <svg>
                        <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#snapchat" class="snapchat"></use>
                    </svg>
                </a>
            </li>

        </ul>

    </div>
    <div class="neutral">
        <ul>
            <li>
                <a href="#">
                    <svg>
                        <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#facebook" class="facebook"></use>
                    </svg>
                </a>
            </li>
            <li>
                <a href="#">
                    <svg>
                        <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#twitter" class="twitter"></use>
                    </svg>
                </a>
            </li>
            <li>
                <a href="#">
                    <svg>
                        <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#youtube" class="youtube"></use>
                    </svg>
                </a>
            </li>
            <li>
                <a href="#">
                    <svg>
                        <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#flickr" class="flickr"></use>
                    </svg>
                </a>
            </li>
            <li>
                <a href="#">
                    <svg>
                        <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#googleplus" class="googleplus"></use>
                    </svg>
                </a>
            </li>
            <li>
                <a href="#">
                    <svg>
                        <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#instagram" class="instagram"></use>
                    </svg>
                </a>
            </li>
            <li>
                <a href="#">
                    <svg>
                        <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#linkedin" class="linkedin"></use>
                    </svg>
                </a>
            </li>
            <li>
                <a href="#">
                    <svg>
                        <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#rss" class="rss"></use>
                    </svg>
                </a>
            </li>
            <li>
                <a href="#">
                    <svg>
                        <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#pinterest" class="pinterest"></use>
                    </svg>
                </a>
            </li>
            <li>
                <a href="#">
                    <svg>
                        <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#snapchat" class="snapchat"></use>
                    </svg>
                </a>
            </li>

        </ul>
    </div>
    <div class="default">
        <ul>
            <li>
                <a href="#">
                    <svg>
                        <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#facebook" class="facebook"></use>
                    </svg>
                </a>
            </li>
            <li>
                <a href="#">
                    <svg>
                        <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#twitter" class="twitter"></use>
                    </svg>
                </a>
            </li>
            <li>
                <a href="#">
                    <svg>
                        <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#youtube" class="youtube"></use>
                    </svg>
                </a>
            </li>
            <li>
                <a href="#">
                    <svg>
                        <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#flickr" class="flickr"></use>
                    </svg>
                </a>
            </li>
            <li>
                <a href="#">
                    <svg>
                        <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#googleplus" class="googleplus"></use>
                    </svg>
                </a>
            </li>
            <li>
                <a href="#">
                    <svg>
                        <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#instagram" class="instagram"></use>
                    </svg>
                </a>
            </li>
            <li>
                <a href="#">
                    <svg>
                        <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#linkedin" class="linkedin"></use>
                    </svg>
                </a>
            </li>
            <li>
                <a href="#">
                    <svg>
                        <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#rss" class="rss"></use>
                    </svg>
                </a>
            </li>
            <li>
                <a href="#">
                    <svg>
                        <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#pinterest" class="pinterest"></use>
                    </svg>
                </a>
            </li>
            <li>
                <a href="#">
                    <svg>
                        <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#snapchat" class="snapchat"></use>
                    </svg>
                </a>
            </li>
        </ul>
    </div>
</div>
              
            
!

CSS

              
                body {
  padding: 40px;
  text-align: center;
  background-color: #bfced6;
}

section.icons {
  background-color: #bfced6;
}

.icons-social,
.logos-sgf {
  display: none;
}

.sprite-svg div {
  clear: both;
}

.sprite-png ul,
.sprite-svg ul {
  list-style-type: none;
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 6px;
}

.sprite-png li,
.sprite-svg li {
  display: inline-block;
  margin-right: 6px;
}

.sprite-png li,
.sprite-svg svg {
  width: 40px;
  height: 40px;
}

.default a,
.maroon a {
  color: white;
}

.default svg,
.maroon svg,
.neutral svg {
  border-radius: 24px;
}

.neutral a {
  color: #5e0009;
}

.default {
  fill: black;
  color: white;
}

.maroon svg:hover,
.maroon a:focus {
  fill: #0093b2;
}

.sprite-svg .maroon {
  fill: #5e0009;
  color: white;
}

.sprite-svg .neutral {
  fill: #ffffff;
  color: #5e0009;
}

.neutral:hover {
  fill: none;
}

.default:hover svg {
  border-radius: 0;
}

.af {
  fill: none;
  stroke: #bfced6;
  stroke-miterlimit: 10;
  stroke-width: 1;
}

.logos img {
  width: 100%;
}
              
            
!

JS

              
                
              
            
!
999px

Console