123

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <h1></h1>
<main>

	<section>
		<div>
			<h2>The Two Goats</h2>
			<p class="kilo-2">The Plane Tree Two Travellers, walking in the noonday sun, sought the shade of a widespreading tree to rest. As they lay looking up among the pleasant leaves, they saw that it was a Plane Tree. "How useless is the Plane!" said one of them. "It bears
				no fruit whatever, and only serves to litter the ground with leaves." "Ungrateful creatures!" said a voice from the Plane Tree. "You lie here in my cooling shade, and yet you say I am useless! Thus ungratefully, O Jupiter, do men receive their blessings!"
			</p>
			<em>		Our best blessings are often the least appreciated.</em>
		</div>
	</section>
	<section>
		<div>
			<h2>The Stag & His Reflection</h2>
			<p class="kilo-2">
				A Stag, drinking from a crystal spring, saw himself mirrored in the clear water. He greatly admired the graceful arch of his antlers, but he was very much ashamed of his spindling legs. "How can it be," he sighed, "that I should be cursed with such legs
				when I have so magnificent a crown." At that moment he scented a panther and in an instant was bounding away through the forest. But as he ran his wide-spreading antlers caught in the branches of the trees, and soon the Panther overtook him. Then
				the Stag perceived that the legs of which he was so ashamed would have saved him had it not been for the useless ornaments on his head.</p><em> We often make much of the ornamental and despise the useful.</em>
		</div>
	</section>
</main>
            
          
!
            
              main {
	background-color: #edbe57;
	h1,
	h2,
	h3,
	h4,
	h5 {
		padding-bottom: 1.5rem;
		color: #1c4464;
		font-family: "EB Garamond", serif;
	}
	p,em {
		color: #1c4464;
	}
	section {
		padding: 2rem;
		margin: auto;
	}
	section:nth-child(2n-1) {

		padding-bottom: 2rem;
	}
	section:nth-child(2n) {
		
		h2,p,em {
		color: lighten(#edbe57, 15%);
		}
		
		margin-top: 8rem;
		position: relative;
		width: 100%;
		background-color: #206436;		
		z-index: 2;
		&:before {
			position: absolute;
			content: "";
			pointer-events: none;
			top: -110px;
			left: -2%;
			z-index: -1;
			border-bottom: 110px solid;
			border-color: #206436;
			border-right: 50vw solid transparent;
			border-left: 50vw solid transparent;
		}
		p {
			
			padding-right: 5rem;
		}
	}
}


@media screen and (min-width: 600px){
	main {
		section:nth-child(2n-1) {
		display: grid;
		grid-template-columns: 1fr 1fr;
		padding-bottom: 2rem;
		}
	}
		
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console