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

              
                <div class="container">
	<div class="shape"></div>
	<div class="shape2"></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>
</div>
              
            
!

CSS

              
                * {
	box-sizing: border-box;
}

p {
	padding: 20px 0;
}

.container {
	margin: 20px;
	padding-right: 20px;
	// border: 2px solid #F48FB1;
	height: 460px;
	max-width: 800px;
	background-color: #FFECB3;
	clip-path: polygon(100px 0, calc(100% - 200px) 0, calc(100% - 100px) 50%, calc(100% - 200px) 100%, 100px 100%, 180px 50%);
}

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

.shape2 {
	float: right;
	width: 200px;
	height: 460px;
	shape-outside: polygon(0 0, 100% 0, 100% 100%, 0 100%, 100px 50%);
	shape-margin: 10px;
}

              
            
!

JS

              
                
              
            
!
999px

Console