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">
  <div class= "jumbotron">
  <div class= "row">
    <div class="col-xs-12">
<h1 class="text-center">Trebuchet</h1>
<h2 class="text-center"><em> Launching 90 kg stones over 300 meters</em></h2>
<div class="thumbnail ">
 <img src="https://upload.wikimedia.org/wikipedia/commons/2/2e/Trebuchet.jpg">
  <div class="caption text-center">
    Trebuchet is a type of siege engine most frequently used in the Middle Ages.
  </div>
    </div>
      <div class="col-xs-12">
  <div class="text-center">
  <p>Pros of having a trebuchet</p>
  <ul>
    <li>Gives your means to bombard a castles</li>
    <li>Needs only the support of few aoken beams</li>
    <li>Makes othe people fear the aproach of your armies</li>
    <li>Destroying barriers with payloads of stone</li>
    <li>Great at parties</li>
    <li>Financialy sound investment</li>
    <li>Will leave you the master of opponent's cities</li>
    </ul>
    <blockquote>
    <p>"Trebuchets are awesome"</p>  
      <footer><cite>anyone who ever used a trebuchet</cite></footer>
    </blockquote>
    <p>If the above information caught your attention I encourage you to read further <a href="https://en.wikipedia.org/wiki/Trebuchet" target="_blank">here</a></p>
  </div>
</div>
</div>
</div>
 
              
            
!

CSS

              
                body {
   margin-top: 60px;
}

              
            
!

JS

              
                document.getElementsByTagName("h1")[0].style.fontSize = "80px";
              
            
!
999px

Console