css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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="background1">
    <div id="background2">
      <div id="header">
        <h1>Senator Bernie Sanders</h1>
        <h2>2016 United States Presidential Candidate</h2>
      <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 class="timeline">
        <h3>Here's a timeline of Bernie Sanders' presidential campaign:</h3>
          <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.
        <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>
  <p id="credit" class="center">Written and coded by <a href="https://github.com/adam-palmer" target="_blank">Adam Palmer</a>.</p>
                #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;
🕑 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.
Loading ..................