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

              
                <article class="post">
	<h1>This is title</h1>
	<p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Mollitia corrupti voluptatum ipsa officia. Ducimus debitis a numquam ipsa minus, saepe, expedita, labore deleniti excepturi consectetur quasi deserunt rerum quibusdam perferendis?
	dio eligendi iure perferendis tenetur velit nemo voluptatem amet excepturi, aspernatur delectus veniam possimus eveniet deleniti laboriosam reprehenderit similique nesciunt, dignissimos rem optio veritatis, ipsam illo earum? Quia, debitis.
	Delectus magnam suscipit totam dolorum, molestiae sequi velit, eius quos quo reiciendis harum recusandae dolores omnis a debitis obcaecati sapiente id earum nemo consequuntur, porro neque libero aspernatur! Ullam, dolore.</p>
	<img src="https://fillmurray.com/1020/400" alt="" class="full-width">
	<p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Mollitia corrupti voluptatum ipsa officia. Ducimus debitis a numquam ipsa minus, saepe, expedita, labore deleniti excepturi consectetur quasi deserunt rerum quibusdam perferendis?
	Sequi architecto mollitia voluptatum quam ab, consectetur cupiditate incidunt. Similique ad nemo commodi nam, dignissimos modi nihil quas deserunt voluptatibus adipisci numquam iure accusantium molestias placeat? Unde sunt libero laboriosam?
	Impedit praesentium aspernatur sed, architecto quia cupiditate. Omnis dolorem dicta explicabo aliquid deleniti amet eveniet totam nemo quisquam, minus atque, soluta ad, laudantium iusto officiis maxime pariatur molestiae? Laudantium, tempora?
	Quaerat vero, culpa architecto maxime quia esse recusandae illo officiis qui in eum minima iusto, corrupti nam at rerum dolorum amet ipsa quibusdam itaque. Placeat sequi totam qui facere earum.
	Impedit maxime unde tempora maiores illum vel corporis porro omnis optio fugit reiciendis asperiores consequatur expedita possimus quis provident quam quisquam molestiae sequi, quae eos. Perspiciatis libero nam ut sapiente!
	Quia blanditiis distinctio sunt quidem ipsum officiis, veritatis sapiente dignissimos voluptatem in inventore obcaecati magnam eos, repudiandae mollitia ad sed incidunt totam illum quos fugit, sit delectus quaerat architecto? Suscipit?
	Repellat at similique nostrum vero ipsum culpa modi quasi saepe quos molestiae recusandae architecto perferendis aut illo quia alias, fugit voluptas! Repellat asperiores itaque corrupti, velit fuga fugiat ratione atque.
	Placeat quos laborum ad, quod vitae consectetur blanditiis tempora, nesciunt tenetur ullam atque sunt accusamus inventore voluptates repellendus dolorem voluptas, sit ipsam? Dolorem quibusdam ipsa, deleniti adipisci repellat veritatis! Ipsum.
	Facilis odio eligendi iure perferendis tenetur velit nemo voluptatem amet excepturi, aspernatur delectus veniam possimus eveniet deleniti laboriosam reprehenderit similique nesciunt, dignissimos rem optio veritatis, ipsam illo earum? Quia, debitis.
	Delectus magnam suscipit totam dolorum, molestiae sequi velit, eius quos quo reiciendis harum recusandae dolores omnis a debitis obcaecati sapiente id earum nemo consequuntur, porro neque libero aspernatur! Ullam, dolore.</p>
</article>
              
            
!

CSS

              
                // Post container width
$post-container-width: 32rem;

.post {
	margin: 0 auto;
	max-width: $post-container-width;
	h1 {
		text-align: center;
	}
	p {
		line-height: 1.5;
	}
	.full-width {
		width: 100vw;
		position: relative;
		left: calc(-50vw + (#{$post-container-width} / 2));
		@media(max-width: $post-container-width) {
			left: 0;
		}
	}
}

              
            
!

JS

              
                
              
            
!
999px

Console