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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <link href="https://fonts.googleapis.com/css?family=Metal+Mania" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Eczar" rel="stylesheet">

<div class="container">
  <title>A Tribute...to "Tribute"</title>
  <h1 class="text-center" id="headline">A Tribute...to "Tribute"</h1>
  <h3 class="text-center" id="sub-headline"><em>This is not the greatest song in the world...this is a Tribute</em></h3>
  <div id="video" class="text-center video-container">
    <iframe width="560" height="315" src="https://www.youtube.com/embed/_lK4cX5xGiQ" frameborder="0" allowfullscreen></iframe>
  </div>
<div class="row">
    <div id="tale" class="text-center col-md-12">
      <p>
        In the late 90's, Kyle and JB found themselves hitchiking down a long and lonesome road. As they followed that dusty trail, the desert sun beating down     upon them, they came across a demonic figure. The hell-beast issued a challenge, "Play the best song
        in the world, or I'll eat your souls". Unwavering, the dynamic duo did just that, beating the demon back with the utter ferocity of their rock. They had     crafted a song for the ages, that would go down in history as the greatest song ever written...
        <br>
        <br>
        <br>
        <br> ...unfortunately, they forgot how the song went, so we'll just have to settle for this tribute.
      </p>
    </div>
  </div>
  <div id="link" class="text-center">
    To learn more about this great (but not the greatest) song, check out the <a href="https://en.wikipedia.org/wiki/Tribute_(song)" target="blank">Wikipedia page</a>
  </div>
</div> 
  <div id="footer" class="text-center">
    <hr>
    <footer>Written & Coded by <a href="https://www.freecodecamp.com/sniblock" target="blank">Scott Niblock</a></footer>
  </div>
              
            
!

CSS

              
                body {
  margin-top: 60px;
  color: #F5E2C8;
}

.container{
  background-color: #283D3B;  
}

#headline {
  font-family: 'Metal Mania', 'cursive'
}

#sub-headline {
  font-family: 'Eczar'
  padding-bottom: 40px;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 40px; 
  height: 0; 
  overflow: hidden;
}
 
.video-container iframe,
.video-container object,
.video-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#tale {
  padding-top: 40px;
}
#footer {
  color: black;
}
#link {
  font-family: 'Eczar'
}
              
            
!

JS

              
                
              
            
!
999px

Console