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 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

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-fluid">
  <h1 class="text-center">MF DOOM</h1>
  <h3 class="text-center"><a href="https://www.youtube.com/watch?v=ewc1hixzYPY" target="_blank">ALL CAPS</a> when you spell the mans name</h3>

  <div class="item">
    <img src="https://images.genius.com/5815d7f7ae232dd64ace634964f52448.650x430x1.jpg" class="image-responsive">
    <div class="item-overlay top"></div>
  </div>

  <ul>
    <li>Born in England</li>
    <li>Moved to New York</li>
    <li>Was in a rap group called KMD</li>
    <li>Group was dropped</li>
    <li>Brother died</li>
    <li>Left rap for nearly a decade</li>
    <li>Came back as MF DOOM</li>
    <li>Wore a metal mask to protect his identity and people focused on the lyrics rather than looks</li>
  </ul>

  <h3 class="text-center">Check him out <a href="https://en.wikipedia.org/wiki/MF_Doom">here.</a></h3>
              
            
!

CSS

              
                ul {
  display: inline-table;
  margin-left: 50%;
  transform: translate(-50%);
}
h1 {
  font-family: Knewave;
}
.item {
  border: 1px solid #333;
  overflow: hidden;
  margin: 15px auto;
  width: 540px;
  display: block;
}
.item img {
  max-width: 100%;
  transition: all 0.3s;
}

.item:hover img {
  transform: scale(1.1);
}

              
            
!

JS

              
                
              
            
!
999px

Console