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

              
                <link href="https://fonts.googleapis.com/css?family=Merriweather" rel="stylesheet" type="text/css">
<body>
    <div id="middle">
      <h1 class="text-center"><b>Galileo Galilei</b></h1>
      <div id="photogroup">
      <img class="img img-circle" src="https://ichef.bbci.co.uk/news/560/media/images/66945000/jpg/_66945195_galileo_getty624.jpg" id="image1">
      <img class="img img-circle "src="https://upload.wikimedia.org/wikipedia/commons/d/d4/Justus_Sustermans_-_Portrait_of_Galileo_Galilei,_1636.jpg"         id="image2">

      <img class="img img-circle" src="http://cdn.history.com/sites/2/2014/02/galileo-AB.jpeg" id="image3">
      </div>
  <h4 class="text-center">Timeline</h4>
    <table class="table table-reponsive" id="timeline">
      <tr>
        <td>Born</td>
        <td>Becomes mathmatics teacher at the University of Pisa</td>
        <td>Creates Copernican theory</td>
        <td>Gets arrested for theories against the church</td>
        <td>Gets out of jail, but gets house arrest for rest of life</td>
        <td>Died</td>
      </tr>
      <tr>
        <td>1564</td>
        <td>1589</td>
        <td>1595</td>
        <td>1633</td>
        <td>1633</td>
        <td>1642</td>
      </tr>
    </table>
      <h3 class="padding">Short Summary</h3>
      <p  id="summary" class="padding">Galileo Galilei was a genius for his time. He started out in a poor family. Luckily, his family recognized how smart he was and invested in his education. When he grew up he spent his time in mathematics and science. He is known for many accomplishments in revolutionizing math and science. He created the Copernican Theory in 1595. In this theory, the sun is in the middle of the solar system and not the Earth. This was a hated idea at the time because most thought of Earth as the center of the universe. Eventually, he gets jailed for his beliefs by the church. Though he had a tough life, he revolutionized the world.</p>
      <p id="quote">All truths are easy to understand once they are discovered; the point is to discover them.</p>
      
      <div id="galileo">
        <i>-Galileo Galilei</i>
      </div>
      
      <div id="footer">
        <p>Find out more about Galileo <a href="http://www.biographyonline.net/scientists/galileo.html" target=_blank>Here</a>
      </div>
      
      <div id="info">
        <p id="freecodecamp">Created for  
          <a href="https://www.freecodecamp.com" target=_blank><img src="http://www.i-programmer.info/images/stories/News/2016/April/B/freecodecamp_logo.jpg"></a></p>
        <p id="createdby">Created By Logan Sinclair on October 22, 2016.</p>
      </div>
</body>

              
            
!

CSS

              
                .padding{
  padding: 20px;
}
body{
  color: white;
   background-image: url("https://media.giphy.com/media/Fx5MDhcPIW7QY/giphy.gif");
  background-attachment: fixed;
  font-family: Merriweather;
}

table{
  overflow: auto;
  padding: 0 5% 0 5%;
  display: block;
  border: 0;
}
tr, td, th{
  text-align: center;
  padding: 10px;
  border: 2px solid black;
}
#middle{
  background-color: rgb(38, 38, 38);
  margin: 5px 10% 5px 10%;
  opacity: .8;
}
#photogroup{

}
#image1{
    width: 30%;
  height: 30%;
  margin: 0 .4% 0 .4%;
  animation-name: images;
  animation-duration: 2s;
  animation-iteration-count: 1;
  transition-timing-function: ease-out;
}
#image1:hover{
  transform: scale(1.5, 1.5);
}
#image2{
  width: 35%;
  height: 20%;
  margin: 0 .4% 0 .4%;
  animation-name: images;
  animation-duration: 2s;
  animation-iteration-count: 1;
   transition-timing-function: ease-out;
}
#image2:hover{
  transform: scale(1.5,1.5);
}
#image3{
    width: 30%;
  height: 20%;
  margin: 0 .4% 0 .4%;
  animation-name: images;
  animation-duration: 2s;
  animation-iteration-count: 1;
 transition-timing-function: ease-out;
}
#image3:hover{
  transform: scale(1.5,1.5);
}
#quote{
  font-size: 24px;
  padding: 20px 30% 30px 30%;
}
#galileo{
  text-align: right;
  font-size: 24px;
  margin: 0 20% 0 0;
  
}
#footer{
  background-color: black;
  text-align: center;
  font-size: 24px;
  border: 4px solid white;
  animation-name: a;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}
#createdby{
  text-align: right;
  display:inline-block;
  float: right;
}
a{
  color: green;
}
a:hover{
  color: green
}
#freecodecamp{
  display:inline-block;
  float: left;
}
#summary{
  font-size: 18px;
}
@keyframes a{
  
  50%{transform: scale(1.02, 1.02);}
}
@keyframes images{
  10%{transform: rotateY(180deg);}
  20%{transform: rotateY(0deg);}
    30%{transform: rotateY(180deg);}
  40%{transform: rotateY(0deg);}
    50%{transform: rotateY(180deg);}
  60%{transform: rotateY(0deg);}
      70%{transform: rotateY(180deg);}
  80%{transform: rotateY(0deg);}
      90%{transform: rotateY(180deg);}
  100%{transform: rotateY(0deg);}
}


              
            
!

JS

              
                
              
            
!
999px

Console