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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <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>
</div>
              
            
!

CSS

              
                .container {
	margin: 20px;
	border: 1px solid #F48FB1;
	padding: 20px;
}

.shape {
	width: 200px;
	height: 350px;
	background-color: #E91E63;
	float: left;
	shape-outside: polygon(0 0, 50% 0%, 90% 50%, 50% 100%, 0 100%);
	clip-path: polygon(0 0, 50% 0%, 90% 50%, 50% 100%, 0 100%);
	shape-margin: 10px;
}
              
            
!

JS

              
                
              
            
!
999px

Console