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


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.


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.


                <div class="container">
	<div class="shape"></div>
	<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Arcu bibendum at varius vel pharetra vel turpis. Lobortis scelerisque fermentum dui faucibus in. Amet consectetur adipiscing elit pellentesque habitant. Dignissim cras tincidunt lobortis feugiat. Senectus et netus et malesuada fames ac turpis egestas sed. Risus commodo viverra maecenas accumsan lacus vel facilisis volutpat est. Diam quis enim lobortis scelerisque fermentum dui faucibus in. Netus et malesuada fames ac. Blandit massa enim nec dui nunc mattis. Est placerat in egestas erat imperdiet sed.

Ultrices in iaculis nunc sed augue. Blandit aliquam etiam erat velit scelerisque. Nec ultrices dui sapien eget mi proin sed. Nibh tortor id aliquet lectus. Arcu vitae elementum curabitur vitae nunc sed velit dignissim sodales. Ac tortor vitae purus faucibus ornare suspendisse. Enim praesent elementum facilisis leo vel fringilla est ullamcorper. Non consectetur a erat nam at lectus urna duis convallis. Euismod lacinia at quis risus sed. Sem integer vitae justo eget magna fermentum iaculis eu. Velit euismod in pellentesque massa placerat duis ultricies. Scelerisque fermentum dui faucibus in ornare. Ut consequat semper viverra nam libero justo laoreet sit amet. Tortor pretium viverra suspendisse potenti nullam ac tortor vitae purus. Varius vel pharetra vel turpis nunc eget lorem dolor sed. Sed id semper risus in.</p>


                * {
	box-sizing: border-box;

.container {
	margin: 20px;
	padding-right: 20px;
	border: 2px solid #F48FB1;
	height: 360px;
	max-width: 800px;
	background-color: #FFECB3;
	clip-path: polygon(100px 0, 100% 0, 100% 100%, 100px 100%, 180px 180px);
	// box-shadow: 5px 5px 20px #212121; this won’t be visible as it’s being clipped

.shape {
	width: 200px;
	height: 350px;
	float: left;
	shape-outside: polygon(0 0, 100px 0, 180px 50%, 100px 100%, 0 100%);
	clip-path: polygon(0 0, 100px 0, 180px 50%, 100px 100%, 0 100%);
	shape-margin: 10px;