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.

              <div id="container">
<h1>Michael Jackson</h1>
<h2><em>The man who invented the moon walk</em></h2>
<div class="mjImage"><img src="https://pbs.twimg.com/profile_images/378800000000771764/4f993b65a207eb1d9165eabc6532d7f6.jpeg" alt="michael jackson" /><p>Michael Jackson</p></div>

<h3>Michael Jackson's creative journey:</h3>
  <li><span>1958</span> - Michael Jackson was born to Katherine and Joe Jackson in Gary, Indiana.</li>
  <li><span>1962</span> - Jackson 5 was formed.</li>
  <li><span>1969</span> - The Song "<em>I Want You Back</em>" becomes a number one single.</li>
  <li><span>1978</span> - Michael makes his acting debut as the Scarecrow in "<em>The Wiz</em>", an urban retelling of The Wizard of Oz.
  <li><span>1980</span> - Jackson wins his first Grammy Award for Best R&B Male Vocal Performance.</li>
  <li><span>1982</span> - Jackson releases <em>Thriller</em>, which tops the charts for 37 weeks.</li>
  <li><span>1987</span> - Jackson releases his seventh album, "<em>Bad</em>" behind which he embarks on a relentless world tour.</li>
  <li><span>1994</span> - Michael Jackson marries Lisa-Marie Presley, the daughter of the late Elvis Presley.</li>
  <li><span>2001</span> - Sony releases Michael Jackson’s tenth and final studio album, "<em>Invincible</em>".</li>
  <li><span>2009</span> - Jackson passes away as a result of cardiac arrest in Los Angeles at the age of 50.</li>
<blockquote>If you enter this world knowing you are loved and you leave this world knowing the same, then everything that happens in between can be dealt with.<cite>Michael Jackson</cite></blockquote>
<div class="read-more">
  <a href="https://en.wikipedia.org/wiki/Michael_Jackson" target="_blank">Read more about Michael Jackson's creative lifestyle.</a>
              h1, h2, h3, h4, h5, h6 {
  text-align: center;
  margin: 0 0 10px;
  padding: 0;

a:link {
  text-decoration: none;

#container {
  width: 960px;
  margin: 0 auto;
  background-color: lightgray;
  border-radius: 5px;
  padding: 20px;

body {
  margin-top: 60px;
  text-align: center;

.mjImage {
  padding: 10px;
  text-align: center;
  background-color: white;
  display: inline-block;
  border-radius: 5px;

.read-more {
  padding-top: 50px;
  text-align: center;
  font-size: 22px;
  font-family: Helvetica, Ariel, sans-serif;

ul {
  text-align: left;

h3 {
  margin-top: 30px;
  font-size: 20px;

span {
  font-weight: bold;
🕑 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.