Pen Settings



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


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


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.


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.


	<script src=""></script>
      google: {
        families: ['Roboto:300,400,500,600,900']

<h1>Adjacent siblings</h1>

<div class="outer">
	<p class="margin10"> 🦊margin 10</p>
	<p class="margin40">🐷margin 40 </p>
	<p class="margin80">🐨margin 80 </p>

<h1>Parent and first/last child</h1>
<div class="outer">
	<div class="parent">
		<div class="child">🐯parent margin is 60 ← selected ✔︎<br>🐻child margin is 20 ← ignored ✗ </div>
<h1>Empty blocks</h1>
<div class="outer">
	<div class="empty"></div>
	<div class="element">🐼empty margin-top 60  ←  selected ✔︎ <br>👻element margin bottom 20  ← ignored  ✗<br>🐮element margin top 20  ← ignored  ✗</div>

<div class="footer">
	<h2>Published Cutup #2 Margin.</h2>
	<p>Please check this article.</p>
	<a class="c-btn" href="" target="_black">Go to the article</a>



                body {
	font-family: roboto;
	color: midnightblue;


.outer	{
	border: 2px solid midnightblue;
	margin: 30px;

//Adjacent siblings
.margin10 {
	margin: 10px;
	border: 3px solid salmon;

.margin40 {
	margin: 40px;
	border: 3px solid salmon;

	margin: 80px;
	border: 3px solid salmon;

//Parent and first/last child
.parent {
	margin: 60px;

.child {
	margin: 20px;
	border: 3px solid salmon;

//Empty blocks
.empty {
	margin-top: 60px;
	margin-bottom: 20px;

.element {
	margin: 20px;
	border: 3px solid salmon;

.footer {
	margin: 100px auto;
	text-align: center;
	width: 800px;

//button default style

.c-btn {
  background-color: transparent;
  border: 0;
  border-radius: 0;
  color: inherit;
  display: inline-block;
  font-family: inherit;
  font-size: 16px;
  font-weight: inherit;
  padding: 0;
  text-decoration: none;
  padding: 10px 35px;
  border-radius: 5px;
  margin: 20px;
	//button style
	background-color: midnightblue;
	color: white