Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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 class="jumbotron">
     <div class="container">
      <h1 class="align-center">Justin Trudeau</h1>
       <p class="align-center"><em>23rd Prime Minister of Canada</em></p>
     </div>
     
     <div class="row">
  <div class="col-md-15 col-lg-12">
    <div class="thumbnail">
      <img src="http://www.macleans.ca/wp-content/uploads/2017/06/MAC07_TRUDEAUPOST02.jpg" alt="trudeau">
      <div class="caption text-center">
        <h4>Justin Pierre James Trudeau</h4>
      </div>
    </div>
  </div>
</div>
     <br />
     <div class="margin">
       <h3>Here is a brief timeline of Trudeau's life:</h3>
       <ul>
         <li><strong>1971</strong>- Born in Ottawa, Ontario</li>
         <li><strong>1994</strong>- Graduated from McGill University</li>
         <li><strong>1998</strong>- Graduated the University of British Columbia</li>
         <li><strong>2000</strong>- Gained a high public profile after delivering an eulogy</li>
         <li><strong>2008</strong>- Elected to represent the riding of Papineau in the House of Commons.</li>
         <li><strong>2009</strong>- Appointed the Liberal Party's critic for youth and multiculturalism.</li>
         <li><strong>2011</strong>- Appointed as critic for secondary education and youth and amateur sport.</li>
         <li><strong>2013</strong>- Won the leadership of the Liberal Party</li>
         <li><strong>2015</strong>- Trudeau and the rest of the Cabinet were sworn in by Governor General David Johnston.</li>
       </ul>
     </div>
     <blockquote>
       <p>"We have created a society where individual rights and freedoms, compassion and diversity are core to our citizenship. But underlying that idea of Canada is the promise that we all have a chance to build a better life for ourselves and our children."</p>
       <cite>- Justin Trudeau</cite>
     </blockquote>
     <div class="margin">
       <p>If you have more time you should read more about him on his <a href="https://en.wikipedia.org/wiki/Justin_Trudeau" target="_blank">Wikipedia entry</a></p>
     </div>
  </div>
<hr>
  <footer class="align-center">Written and coded by <a href="https://www.freecodecamp.org/nikijiandani" target="_blank">Nikita Jiandani</a></footer>
  
  </body>
              
            
!

CSS

              
                body {
  margin: 20px;
}
img{
  
}
.align-center {
  text-align: center;
}
.margin {
  margin: 5%;
}
hr.style-four {
    height: 12px;
    border: 0;
    box-shadow: inset 0 12px 12px -12px rgba(0, 0, 0, 0.5);
}
              
            
!

JS

              
                
              
            
!
999px

Console