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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <body>
  <div id="background1">
    <div id="background2">
      <div id="header">
        <h1>Senator Bernie Sanders</h1>
        <h2>2016 United States Presidential Candidate</h2>
      </div>
      <div class="imageborder">
        <img class="img-responsive centerimage" src="http://www.berniebanner.com/wp-content/uploads/2015/11/cropped-bernie-sanders-blue-banner3.png" alt="Sanders Campaign Banner">
        <p class="center">Bernie Sanders posing with his campaign banner during the 2016 United States presidential election.</p>


      </div>
      <div class="timeline">
        <h3>Here's a timeline of Bernie Sanders' presidential campaign:</h3>
        <ul>
          <li>Apr 30th, 2015 - Officially declares candidacy for the democratic presidential nomination.</li>
          <li>Oct 13th, 2015 - First democratic debate against Hillary Clinton.</li>
          <li>Nov 24th, 2015 - Successfully raised over $27.1 million primarily from independent donations.</li>
          <li>Dec 19th, 2015 - This debate is held in Manchester New Hampshire and promises another forward leap in Bernies standings.</li>
          <li>Feb 1st, 2016 - Bernie sanders has a good show of support at the Iowa caucus and comes out on top.</li>
          <li>Feb 11th, 2016 - PBS Democratic Primary Debate.</li>
          <li>Mar 9th, 2016 - Univision Democratic Primary Debate.</li>
          <li>Mar 15th, 2016 - Senator Sanders wins the Illinois Primary securing him 20 votes.
        </ul>
        <p class="quotetext">"What my campaign is about is a political revolution - millions of people standing up and saying, enough is enough."</p>
        <p class="quote">— Senator Bernie Sanders, Presidential Candidate</p>
        <h3>If you have time, you should read more about Senator Sanders on his <a href="https://berniesanders.com/" target="_blank">official website</a>.<h3>
  </div>
  </div>
  </div>
  </body>
  <p id="credit" class="center">Written and coded by <a href="https://github.com/adam-palmer" target="_blank">Adam Palmer</a>.</p>
              
            
!

CSS

              
                  #background1 {
    background-color: white;
    padding: 50px;
  }
  
  #background2 {
    background-color: #e6e6e6;
    padding: 50px;
    border-radius: 5px;
  }
  
  h1 {
    font-size: 60px;
    text-align: center;
  }
  
  h2 {
    font-size: 28px;
    font-style: italic;
    text-align: center;
  }
  
  .centerimage {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  
  .imageborder {
    background-color: white;
    border-style: solid;
    border-color: #D3D3D3;
    border-width: 1px;
    padding: 5px;
    border-radius: 5px;
  }
  
  .timeline {
    margin: auto;
    width: 80%;
  }
  
  .quotetext {
    font-size: 20px;
  }
  
  .quote {
    color: grey;
    font-style: italic
  }
  
  .center {
    margin: auto;
    text-align: center;
    padding: 10px;
  }
              
            
!

JS

              
                
              
            
!
999px

Console