Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <!-- This should be in `<head>` or an external stylesheet and only when _not_ using Modernizr's Inline SVG feature detection. -->
<!--[if lt IE 9]>
	<style>
		.logo img {
			display: inline-block;
		}
	</style>
<![endif]-->

<!-- Anchor with an inline SVG from the sprite below -->
<a href="https://www.livingsocial.com/" class="logo">
	<svg aria-label="LivingSocial">
		<use xlink:href="#livingsocial-logo">
		<img src="https://f.cl.ly/items/3t3H3K3q060J1H2H342l/livingsocial-logo.png" alt="LivingSocial">
	</svg>
</a>

<!-- Inlined SVG icon sprite -->
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
	<symbol id="livingsocial-logo" viewBox="0 0 112 42">
		<path d="M110.613 4.776c-2.502-3.81-9.658-6.56-12.76-3.39-.352.358-.666.73-.94 1.115.913.197 1.72.66 2.153 1.575.504 1.005.59 3.74-.318 5.23.29.31.525.678.705 1.072.307.686.682 1.63.722 2.556.702.373 1.444.68 1.91.793 1.194.29 2.452.262 3.61.126 1.478-.17 2.81-.78 3.844-1.733 1.89-1.745 2.79-4.728 1.072-7.34z" fill="#E5B722"/>
		<path d="M94.105 9.373c.596-.427 1.33-.76 2.08-.878-.924-2.178-.537-4.216.73-5.993-1.04-.223-2.22-.094-3.16.13-2.053.468-2.614 1.447-2.565 3.5.032 1.588.83 3.173 2.096 4.012.247-.288.517-.555.82-.77z" fill="#61B7DD"/>
		<path d="M96.186 8.494c.645-.1 1.3-.045 1.89.27.258.14.477.33.673.54.906-1.49.82-4.226.316-5.23-.434-.916-1.24-1.378-2.152-1.573-1.267 1.78-1.653 3.817-.73 5.995z" fill="#DDB929"/>
		<path d="M96.186 8.494c.645-.1 1.3-.045 1.89.27.258.14.477.33.673.54.906-1.49.82-4.226.316-5.23-.434-.916-1.24-1.378-2.152-1.573-1.267 1.78-1.653 3.817-.73 5.995z" fill="#638139"/>
		<path d="M97.316 10.406c-.667.278-1.06.266-1.694.336-.88.082-1.672-.158-2.337-.6-.987 1.147-1.502 2.76-1.172 4.163v.003c.654-.038 1.342.108 1.64.73.147.298.23.935.14 1.52 1.896 1.056 3.732.6 5.672-1.735.498-.55.643-1.217.61-1.892-.662-.35-1.292-.762-1.608-1.125-.48-.47-.896-.936-1.25-1.398z" fill="#E71089"/>
		<path d="M98.748 9.303c-.19.307-.415.565-.697.738-.28.16-.52.278-.732.367.354.462.77.93 1.25 1.398.316.363.946.775 1.608 1.127-.04-.926-.415-1.87-.722-2.555-.18-.393-.415-.76-.705-1.072z" fill="#DDB929"/>
		<path d="M98.748 9.303c-.19.307-.415.565-.697.738-.28.16-.52.278-.732.367.354.462.77.93 1.25 1.398.316.363.946.775 1.608 1.127-.04-.926-.415-1.87-.722-2.555-.18-.393-.415-.76-.705-1.072z" fill="#BD2429"/>
		<path d="M95.622 10.742c.636-.07 1.027-.058 1.694-.336-.494-.647-.863-1.286-1.13-1.912-.75.117-1.485.452-2.08.878-.304.216-.573.483-.82.77.664.442 1.455.682 2.336.6z" fill="#61B6DC"/>
		<path d="M95.622 10.742c.636-.07 1.027-.058 1.694-.336-.494-.647-.863-1.286-1.13-1.912-.75.117-1.485.452-2.08.878-.304.216-.573.483-.82.77.664.442 1.455.682 2.336.6z" fill="#6E2A77"/>
		<path d="M98.074 8.765c-.59-.316-1.244-.372-1.89-.27.27.625.638 1.264 1.132 1.91.21-.087.453-.204.734-.364.282-.17.507-.43.697-.736-.195-.21-.414-.4-.673-.538z" fill="#DDB929"/>
		<path d="M98.074 8.765c-.59-.316-1.244-.372-1.89-.27.27.625.638 1.264 1.132 1.91.21-.087.453-.204.734-.364.282-.17.507-.43.697-.736-.195-.21-.414-.4-.673-.538z" fill="#61B6DC"/>
		<path d="M98.074 8.765c-.59-.316-1.244-.372-1.89-.27.27.625.638 1.264 1.132 1.91.21-.087.453-.204.734-.364.282-.17.507-.43.697-.736-.195-.21-.414-.4-.673-.538z" fill="#68262E"/>
		<path d="M92.113 14.31h-.017c-.235.014-.466.052-.667.1-.9.205-1.145.634-1.125 1.53.023 1.06.817 2.12 1.94 2.017.364-.04.806-.096 1.06-.306.4-.323.542-.56.585-1.09 0 0-.15-.082-.224-.13-.86-.534-1.354-1.29-1.553-2.12z" fill="#ED8027"/>
		<path d="M93.752 15.04c-.297-.624-.984-.77-1.64-.73.2.83.692 1.585 1.556 2.12.072.045.225.13.225.13.09-.586.007-1.223-.14-1.52z" fill="#E61489"/>
		<path d="M93.752 15.04c-.297-.624-.984-.77-1.64-.73.2.83.692 1.585 1.556 2.12.072.045.225.13.225.13.09-.586.007-1.223-.14-1.52z" fill="#EC8028"/>
		<path d="M93.77 15.038c-.302-.63-1-.773-1.657-.73.196.83.688 1.587 1.555 2.12.072.047.15.09.225.132.09-.586.03-1.227-.122-1.522" fill="#CD1F42"/>
		<path d="M104.895 21.423c-1.148-.314-2.547-.495-3.227-.495-4.348 0-6.56 2.796-6.56 7.418 0 3.788 1.535 6.29 4.738 6.29 2.16 0 3.333-1.15 4.058-2.435v1.24c0 .61.43 1.105 1.036 1.105.63 0 1.036-.495 1.036-1.104V23.14c0-.95-.112-1.443-1.08-1.715zm-1.083 7.014c0 1.758-1.215 4.53-3.877 4.53-2.028 0-2.662-2.343-2.662-4.554 0-3.248 1.037-5.727 4.06-5.727.99 0 1.984.2 2.48.404v5.347zm-13.53-6.293c0-.63.476-1.127 1.083-1.127.634 0 1.105.497 1.105 1.127V33.44c0 .61-.472 1.105-1.105 1.105-.607 0-1.082-.495-1.082-1.104V22.146zm-3.65 10.012c.316-.18.7-.383 1.06-.383.428 0 .81.27.81.855 0 .34-.157.61-.493.836-.903.607-2.37 1.172-4.018 1.172-3.72 0-5.727-2.39-5.727-6.854 0-5.32 3.246-6.854 5.704-6.854 1.375 0 2.75.314 4.06 1.397.225.18.36.473.36.766 0 .52-.36.973-.9.973-.295 0-.635-.18-.858-.36-.858-.722-1.603-.948-2.64-.948-2.028 0-3.537 1.534-3.537 4.938 0 3 1.057 5.12 3.742 5.12.787 0 1.575-.16 2.434-.656zM70.916 20.928c-2.594 0-5.95 1.35-5.95 6.764 0 4.712 2.183 6.944 5.52 6.944 3.27 0 5.952-2.12 5.952-7.215 0-5.927-3.717-6.49-5.522-6.49zm-.248 11.995c-2.887 0-3.52-2.977-3.52-5.48 0-2.75 1.244-4.756 3.61-4.756 2.433 0 3.45 2.12 3.45 5.164 0 2.776-1.17 5.074-3.54 5.074zm-15.65-1.037c.272 0 .476.11.654.202.79.43 1.715.835 2.976.835 1.4 0 2.46-.654 2.46-2.097s-1.352-1.917-2.816-2.39c-1.78-.586-3.725-1.242-3.725-3.7 0-2.636 2.102-3.81 4.4-3.81 1.44 0 2.59.383 3.447.924.248.136.564.428.564.857 0 .497-.336.902-.834.902-.248 0-.52-.137-.746-.273-.742-.45-1.6-.652-2.523-.652-1.06 0-2.256.404-2.256 1.85 0 1.328 1.376 1.825 2.77 2.275 1.74.588 3.788 1.444 3.788 3.9 0 2.595-1.825 3.925-4.507 3.925-1.895 0-3.047-.54-3.88-.99-.34-.182-.61-.452-.61-.857 0-.496.34-.902.837-.902zM36.62 26c0-1.804-.608-3.292-2.683-3.292-1.894 0-3.404 1.94-3.404 4.24v6.492c0 .61-.472 1.104-1.104 1.104-.608 0-1.083-.495-1.083-1.104V22.144c0-.63.43-1.127 1.04-1.127.63 0 1.058.497 1.058 1.127v.88c.924-1.532 2.346-2.096 3.88-2.096 2.817 0 4.486 1.51 4.486 4.532v7.98c0 .61-.474 1.104-1.103 1.104-.61 0-1.086-.495-1.086-1.104V26zm-18.283-4.284c.158-.406.518-.676.97-.676.766 0 1.307.607.99 1.466L16.17 33.622c-.18.496-.426.902-.967.902-.54 0-.745-.384-.95-.902l-4.08-11.026c-.316-.835.09-1.556.947-1.556.472 0 .838.295.992.7l3.134 8.5 3.09-8.524zM0 16.8c0-.63.475-1.127 1.082-1.127.63 0 1.105.496 1.105 1.127v16.79c0 .61-.475 1.105-1.105 1.105C.475 34.695 0 34.2 0 33.59V16.8zm109.34 0c0-.63.473-1.127 1.08-1.127.633 0 1.107.496 1.107 1.127v16.79c0 .61-.475 1.105-1.107 1.105-.607 0-1.08-.495-1.08-1.104V16.8zm-58.59 4.535c-1.012-.248-2.025-.43-2.973-.43-3.27 0-6.247 2.255-6.247 6.563 0 4.62 2.01 6.29 4.35 6.515l-.47.317c-1.377.924-2.864 1.984-2.864 4.014 0 2.118 1.42 3.607 4.147 3.607 5.188 0 5.39-4.85 5.39-7.71V23.183c0-1.444-.383-1.624-1.333-1.85zm-.695 13.867c0 2.908-.7 5.118-3.18 5.118-1.354 0-2.3-.61-2.3-2.006 0-1.195 1.217-2.232 2.546-3.36l2.936-2.503v2.753zm.02-6.743c0 1.983-1.26 4.013-3.09 4.013-3.18 0-3.29-3.18-3.29-4.804 0-3.27 1.556-5.006 3.812-5.006 1.193 0 1.848.157 2.566.383v5.41zm-27.24-6.337c0-.632.473-1.128 1.083-1.128.63 0 1.102.496 1.102 1.128V33.42c0 .61-.472 1.106-1.102 1.106-.61 0-1.082-.496-1.082-1.105V22.125zm-17 0c0-.632.47-1.128 1.08-1.128.63 0 1.103.496 1.103 1.128V33.42c0 .61-.472 1.106-1.102 1.106-.61 0-1.082-.496-1.082-1.105V22.125z" fill="currentcolor"/>
	</symbol>
</svg>
              
            
!

CSS

              
                body {
	background: #08c;
	background-image: linear-gradient(to right, #544aa1, #08c);
	padding: 6em;
}

.logo {
	color: #fff;
	display: block;
	height: 5.25em;
	margin: 0 auto;
	width: 14em;
}

.logo svg {
	max-height: 100%;
	width: 100%;
}

.logo img {
	border: 0;
	display: none;
}

/* Use this in combination with Modernizr's Inline SVG feature detection. */
.no-inlinesvg .logo img {
	display: inline-block;
}
              
            
!

JS

              
                
              
            
!
999px

Console