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

              
                <header>
	<h1>Responsive CSS shapes</h1>
</header>
<main>
	<div class="backpack">
    <div class="shape-one"></div>
		<p>ipsum dolor sit amet, need to chase tail. Have a lot of grump in your self because you can't forget to be grumpy and not be like king grumpy cat kitten is playing with dead mouse eat all the power cords so chew on cable plays league of legends.</p>
	</div>
    <div class="pull-quote">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut a.</div>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Nunc id cursus metus aliquam eleifend mi in nulla posuere. Tempus iaculis urna id volutpat lacus laoreet non curabitur gravida. Etiam dignissim diam quis enim. Tristique senectus et netus et malesuada. Eget sit amet tellus cras adipiscing. Mauris ultrices eros in cursus turpis massa tincidunt dui. Nulla porttitor massa id neque. Enim praesent elementum facilisis leo vel fringilla. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Nunc id cursus metus aliquam eleifend mi in nulla posuere. Tempus iaculis urna id volutpat lacus laoreet non curabitur gravida. Etiam dignissim diam quis enim. Tristique senectus et netus et malesuada. Eget sit amet tellus cras adipiscing. Mauris ultrices eros in cursus turpis massa tincidunt dui. Nulla porttitor massa id neque. Enim praesent elementum facilisis leo vel fringilla.
 </p>

 <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Nunc id cursus metus aliquam eleifend mi in nulla posuere. Tempus iaculis urna id volutpat lacus laoreet non curabitur gravida. Etiam dignissim diam quis enim. Tristique senectus et netus et malesuada. Eget sit amet tellus cras adipiscing. Mauris ultrices eros in cursus turpis massa tincidunt dui. Nulla porttitor massa id neque. Enim praesent elementum facilisis leo vel fringilla.</p>
  		<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Nunc id cursus metus aliquam eleifend mi in nulla posuere. Tempus iaculis urna id volutpat lacus laoreet non curabitur gravida. Etiam dignissim diam quis enim. Tristique senectus et netus et malesuada. Eget sit amet tellus cras adipiscing. Mauris ultrices eros in cursus turpis massa tincidunt dui. Nulla porttitor massa id neque. Enim praesent elementum facilisis leo vel fringilla. .
 </p>
</p>
	</div>
		<img class="shape-three" src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRaczQelQqVdrdYHGZec1oa1981x058ujGNsg&usqp=CAU" alt="">
		<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Nunc id cursus metus aliquam eleifend mi in nulla posuere. Tempus iaculis urna id volutpat lacus laoreet non curabitur gravida. Etiam dignissim diam quis enim. Tristique senectus et netus et malesuada. Eget sit amet tellus cras adipiscing. Mauris ultrices eros in cursus turpis massa tincidunt dui. Nulla porttitor massa id neque. Enim praesent elementum facilisis leo vel fringilla.
 </p>
		<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Nunc id cursus metus aliquam eleifend mi in nulla posuere. Tempus iaculis urna id volutpat lacus laoreet non curabitur gravida. Etiam dignissim diam quis enim. Tristique senectus et netus et malesuada. Eget sit amet tellus cras adipiscing. Mauris ultrices eros in cursus turpis massa tincidunt dui. Nulla porttitor massa id neque. Enim praesent elementum facilisis leo vel fringilla. .
 </p>
	</div>
</main>
              
            
!

CSS

              
                body {
  background: hsl(210, 98%, 84%);
  padding: 35px 0 0; 
  color: hsl(200, 63%, 21%);
}

header {
	letter-spacing: 2px;
	margin-bottom: 20px;
	text-align: center;
} 
h1 {
  margin-top: 0;
}

main {
	margin: 50px auto 0;
	max-width: 820px;
} 
.shape-one {
  clip-path: circle();
  float: left;
  shape-outside: circle();
  transform: translate(-15%);
  width: 200px;
  height: 200px;
  background: hsl(200, 63%, 21%);
}
.pull-quote{
  width: 200px;
  shape-outside: content-box;
  float: right;
  font-size: 14px;
  font-style: italic; 
  border-top: 3px solid hsl(200, 63%, 21%);
}
.shape-three {
  float: left;
  -webkit-clip-path: polygon(0 100%, 0 0, 100% 0, 80% 100%);
  clip-path: polygon(0 100%, 0 0, 100% 0, 80% 100%);
  shape-outside: polygon(0 100%, 0 0, 100% 0, 80% 100%);
  transform: translate(-5%);
}
	
              
            
!

JS

              
                
              
            
!
999px

Console