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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ 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

              
                <main>
	<div>
		<div>
</div>
		<div>
			<h2>Some Text</h2>
		<p class="kilo">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Gravida arcu ac tortor dignissim convallis. Cras sed felis eget velit aliquet. Amet nisl purus in mollis nunc sed id. Egestas sed tempus urna et pharetra pharetra massa. Felis eget velit aliquet sagittis id. Viverra tellus in hac habitasse platea dictumst vestibulum. Aliquet porttitor lacus luctus accumsan tortor posuere. Malesuada fames ac turpis egestas. Eu turpis egestas pretium aenean. Magna sit amet purus gravida quis blandit turpis cursus in. Vulputate odio ut enim blandit volutpat maecenas.
</p></div>
	</div>
	<div>
		<div>
			<h2>Some Text/Some Test</h2>
		<p class="kilo">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Gravida arcu ac tortor dignissim convallis. Cras sed felis eget velit aliquet. Amet nisl purus in mollis nunc sed id. Egestas sed tempus urna et pharetra pharetra massa. Felis eget velit aliquet sagittis id. Viverra tellus in hac habitasse platea dictumst vestibulum. Aliquet porttitor lacus luctus accumsan tortor posuere. Malesuada fames ac turpis egestas. Eu turpis egestas pretium aenean. Magna sit amet purus gravida quis blandit turpis cursus in. Vulputate odio ut enim blandit volutpat maecenas. Ipsum nunc aliquet bibendum enim facilisis gravida neque convallis.
	</div>
	</div>
</main>
              
            
!

CSS

              
                $color-a: darken(#74b49b, 10%);
$color-b: darken(#5c8d89, 10%);
main {
	padding: 2rem;
	& > div {
		display: grid;
		grid-template-rows: 1fr 1fr;
		grid-template-columns: 1fr 1fr;
		h2 {
			font-family: serif;
			font-size:  4.5rem;;
			padding-bottom: 4rem;
			padding: 1rem;
			color: #a7d7c5;
		}
		p {
			color: #f9f8eb;
			line-height: 1.7;
			font-size: 1.2rem;
			width: 50vw;
		}
	}
	& > div:nth-child(1) {
		background: linear-gradient(to right bottom, $color-a 10%, $color-b 50%);
		div {
			padding: 2rem;
			grid-column-end: -1;
			grid-row-end: -1;
		}
	}
	& > div:nth-child(2) {
		background: linear-gradient(to left top, $color-a 10%,  $color-b 50%);
		div {
			padding: 2rem;
		}
	}
}

              
            
!

JS

              
                
              
            
!
999px

Console