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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <main>
	<img src="//s3-us-west-2.amazonaws.com/s.cdpn.io/150150/yoga.png">	
	
	<p class="title">Shape Outside Demo <span>ellipse</span>
</p>
	
	<p class="intro">The following are a few of my favorite excerpts from the 2005 Stanford University commencement speech given by Steve Jobs.</p>
	
	<p class="first">“No one wants to die. Even people who want to go to heaven don't want to die to get there. And yet death is the destination we all share. No one has ever escaped it. And that is as it should be, because Death is very likely the single best invention of Life. It is Life's change agent. It clears out the old to make way for the new. Right now the new is you, but someday not too long from now, you will gradually become the old and be cleared away. Sorry to be so dramatic, but it is quite true.</p>

	<p>Your time is limited, so don't waste it living someone else's life. Don't be trapped by dogma — which is living with the results of other people's thinking. Don't let the noise of others' opinions drown out your own inner voice. And most important, have the courage to follow your heart and intuition. They somehow already know what you truly want to become. Everything else is secondary.</p>

	<p>Stay Hungry. Stay Foolish.”</p>	
	
</main>
            
          
!
            
              img {
  float: left; 
	height: 600px;
	width: 600px;
	shape-outside: ellipse(224px 320px at 35.1% 50%);
}

// styles for fun, not important to show css-shapes

// CSS Pattern from Lea Verou
// lea.verou.me/css3patterns/#starry-night 
body {
	background-color: hsl(240,100,5);
	color: #fff;
	font-family: "Libre Baskerville", serif;
	line-height: 1.7;
	position: relative;
	width: 100%;
}

main,
.title {
	margin: 0 auto;
	max-width: 60rem;
}

.title {
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1.1;
	margin: 0 0 .5rem 0;
	padding: 3.5rem 0 0;
	
	span {
		color: hsl(200, 90, 90);
		font-size: 2rem;
		font-style: italic;
		font-weight: 400;
		line-height: 1.2;
		margin: 0;
	}
}

@supports (shape-outside: circle() ) {
	.title {
		padding: 2.0rem 0 0;
	}
}

.intro {
	color: hsl(30, 50, 60);
	font-style: italic;
	font-size: 1.15rem;
	text-shadow: 1px 1px 1px #333;
}

p {
	font-size: .9rem;
	margin: 0;
	padding-top: 1.5rem;
}

.first {
	padding-top: 1.22rem;
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console