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

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

              
                <div class="box"><a>
		<span class="badge bottom" data-snip-rule="580">New</span>
		<i class="outlined">notifications</i>
	</a><a>
		<span class="badge circle bottom" data-snip-rule="582">10</span>
		<i class="outlined">search</i>
	</a></div>
<div class="box">
	<button class="extend flat circle extra" data-snip-rule="536">
		<i data-snip-rule="1122" class="outlined">add</i>
		<span data-snip-rule="1123">Button</span>
	</button>
	<button class="round orange extra">
		<i class="outlined">home</i>
		<span>Button</span>
	</button>
</div>
<article class="no-padding box">
	<img src="https://picsum.photos/400/300" class="responsive small">
	<div class="padding">
		<h5 class="no-margin">Title</h5>
		<div>Complementary text</div>
		<nav>
			<button class="none">Button</button>
		</nav>
	</div>
</article>

<div class="box">
	<button data-ui="#dropdown1_">
		<span>This is a large button</span>
		<i class="outlined">arrow_drop_down</i>
		<div id="dropdown1_" data-ui="#dropdown1_" class="dropdown" data-snip-rule="425">
			<a>Title</a>
			<a>
				<div>Title</div>
				<label>Complementary text</label>
			</a>
			<a class="row no-wrap middle-align">
				<div class="col min">
					<i class="outlined">home</i>
				</div>
				<div class="col">Title</div>
			</a>
			<a class="row no-wrap middle-align">
				<div class="col min">
					<i class="outlined">home</i>
				</div>
				<div class="col">
					<div>Title</div>
					<label>Complementary text</label>
				</div>
			</a>
			<a class="row no-wrap middle-align">
				<div class="col min">
					<img src="/beer-and-woman.jpg" class="circle tiny">
				</div>
				<div class="col">Title</div>
			</a>
			<a class="row no-wrap middle-align">
				<div class="col min">
					<img src="/beer-and-woman.jpg" class="circle tiny">
				</div>
				<div class="col">
					<div>Title</div>
					<label>Complementary text</label>
				</div>
			</a>
		</div>
	</button>
</div>

<div class="field label box">
	<input type="text">
	<label>Label</label>
	<span class="helper">Complementary text</span>
</div>
<div class="field label middle-align box">
	<label class="active">A question?</label>
	<nav>
		<label class="switch">
			<input type="checkbox">
			<span>Item 1</span>
		</label>
		<label class="switch">
			<input type="checkbox">
			<span>Item 2</span>
		</label>
		<label class="switch">
			<input type="checkbox">
			<span>Item 3</span>
		</label>
	</nav>
</div>
<div class="box">
	<div class="tabs">
		<a data-ui="#tab4_" class="active">
			<i class="outlined">home</i>
			<span>Tab 1</span>
		</a>
		<a data-ui="#tab5_">
			<i class="outlined">home</i>
			<span>Tab 2</span>
		</a>
		<a data-ui="#tab6_">
			<i class="outlined">home</i>
			<span>Tab 3</span>
		</a>
	</div>
	<div id="tab4_" class="page padding active" data-snip-rule="84">
		<h5 data-snip-rule="981">Tab 1</h5>
	</div>
	<div id="tab5_" class="page padding" data-snip-rule="85">
		<h5 data-snip-rule="982">Tab 2</h5>
	</div>
	<div id="tab6_" class="page padding" data-snip-rule="86">
		<h5 data-snip-rule="983">Tab 3</h5>
	</div>
</div>
              
            
!

CSS

              
                .box {
	margin-bottom: 2.5em;
	width: 70%;
	margin-left: auto;
	margin-right: auto;
}

              
            
!

JS

              
                ui();

              
            
!
999px

Console