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 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.

HTML

              
                <body>
  <div class="container-fluid img-rounded" id="main">
    <div class="row">
      <div class="col-xs-12">
        <h1 class="text-primary text-center" id="title">Albert Einstein</h1>
        <h2 class="text-center">Scientist and universal genius</h2>
      </div>
     </div>
     <div class="col-xs-12 img-rounded" id="img-div">
      <picture class="col-md-12 img-rounded">
        <img class="col-xs-12 col-md-6 img-responsive img-rounded img-thumbnail" src="https://upload.wikimedia.org/wikipedia/commons/thumb/1/14/Albert_Einstein_1947.jpg/628px-Albert_Einstein_1947.jpg" alt="Albert Einstein picture" id="image">
        <figcaption id="img-caption">Albert Einstein</figcation>
      </picture>
      <blockquote><p class="col-xs-12 col-md-6 lead text-center img-rounded"><em>“ I have no special talent, I am only passionately curious. ”</em></p></blockquote>
      <div class="col-xs-12 col-md-6 text-left" id="tribute-info">
        <p><em><strong>1879</strong></em> - Born on March 14 in Ulm, Württemberg, Germany.</p>
        <p><em><strong>1905</strong></em> - Obtained his Doctorate degree and published his most influential research papers, including the special theory of relativity, the photoelectric effect, Brownian motion, and the mass/energy equivalence.</p>
        <p><em><strong>1921</strong></em> - Received the Nobel Prize in physics for his explanation of the photoelectric effect, an essential step in the evolution of quantum theory.</p>
        <p><em><strong>1933</strong></em> - Emigrated to the United States and became a professorship in Princeton, New Jersey, at the prestigious institute for Advanced Study.</p>
        <p><em><strong>1939</strong></em> - Wrote to President Franklin D. Roosevelt to alert him to the possibility of a Nazi bomb and allowed initialization of the Manhattan Project.</p>
        <p><em><strong>1955</strong></em> - Died on April 18 in Princeton, New Jersey, United States of America.</p><br>
        <p class="lead" id="info">If you have time, you should read more about this incredible human being on his <a target="_blank" href= "http://einstein.biz/" id="tribute-link">Official website of Albert Einstein</a>.</p>
      </div>
    </div>
    <small class="col-xs-12 text-center">Written and coded by <a href="https://www.freecodecamp.com/pixelus" target="_blank">St&eacute;phanie Malafosse</a>.</small>
  </div>
</body>
<!--<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>-->
              
            
!

CSS

              
                body {
  background-color: #333;
}
.container-fluid {
  background-color: #E3E3E3;
  margin: 5em;
}
.text-primary , a, a:hover, strong {
  color: #00ACC1;
  text-decoration: none;
}
#img-div {
    background-color: #333;
    margin: 1em 0 2em;
    padding: 2.6em;
}
#img-div img {
    padding: 0.2em;
    max-width: 100%;
    display: block;
    height: auto;
    margin: 0 auto;
}
blockquote  {
    font-size: 1em;
    position: relative;
    left: 1.2em;
    top: -2em; 
    border: none;
}
p.lead {
  color: #00ACC1;
  margin: 0.5em 0 0;
  font-size: 1.2em;
}
div.col-xs-12.col-md-6.text-left {
    margin-top: -1em;
    text-align: justify;
}
p {
    color: #E3E3E3;
    font-size: 0.95em;
    padding: 0.5em 0 0 3em;
    margin: 1em 0;
}
#info {
    color: #E3E3E3;
    font-size: 1.15em;
}
small {
    margin: 0.5em 0 2.5em 0;
}
@media screen and (max-width: 992px) {
  p {
    padding: 0.5em 0 0 0;
  }
  blockquote {
    left: 0;
    font-size: 0.95em;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console