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

              
                <DOCTYPE html>

  <html>

  <header>
    
    <title>A tribute to Elon Musk</title>
  <header>
 
    <h1 id="title">Elon Musk</h1>
    <p id="headingp">"A man of many tallents"</p>
    <hr></hr>
  
    <center><figure id="img-div">
    <center><img src="https://upload.wikimedia.org/wikipedia/commons/e/ed/Elon_Musk_Royal_Society.jpg" alt="Photo of Elon Musk" style="width:400px; length:400px;"></center>
      </figure></center>
    <hr>
  </header>
  <main>
    </body>
  <h2>Here is a timeline of Elon Musk and some of his achievement</h2>
      <section>
        <figure id="gridcolomns">
          <div>
      <img class="img-left" src="https://i.redd.it/2dwuienlpz841.jpg" alt="Baby picture of elon musk" >
        <span>:Born June 28, 1971 Pretoria, Transvaal, South Africa</span>
          </div>
      <div>
        
        <img class="img-right" align="right" src="https://i.insider.com/579a974288e4a727008bba0f?width=750&format=jpeg&auto=webp" alt="Elon Musk graduated" >
        <p  align="right">In 1996 Elon musk graduated college with a BA in business and a Bsc in physics:</p>
        </div>
          <div>
          <img class="img-left" src="https://i.insider.com/5db36222dee019314343a5b6?width=1100&format=jpeg&auto=webp" alt="" style="width:200px;height:200px;">
            <span>:In 1999 Elon Musk co-founded pay-pal</span>
          </div>
          <div>
            <img class="img-right" align="right" src="https://content.fortune.com/wp-content/uploads/2015/10/gettyimages-494548555.jpg" >
            <p class="img-text-right">The year 2002 Elon musk founded SpaceX, to try to achieve his dream to die on mars:</p>
          </div>
          <div>
          <img class="img-left" src="https://upload.wikimedia.org/wikipedia/commons/thumb/f/f2/Elon_Musk_gives_tour_for_President_Barack_Obama.jpg/525px-Elon_Musk_gives_tour_for_President_Barack_Obama.jpg">
          <span>:Musk and President Barack Obama at the Falcon 9 launch site                   in 2010</span>
          </div>
      <div>
        <img class="img-right" align="right" src="https://upload.wikimedia.org/wikipedia/commons/thumb/0/0c/Elon_Musk%2C_Tesla_Factory%2C_Fremont_%28CA%2C_USA%29_%288765031426%29.jpg/461px-Elon_Musk%2C_Tesla_Factory%2C_Fremont_%28CA%2C_USA%29_%288765031426%29.jpg">
        <p class="img-text-right">2011 Musk released the Tesla model S:</p>
          </div>
        </figure>
      </section>
<br>
    <br>
    <h3 align="center">Read more on Elon musk here</h3>

  </body>
    </main>
    
  </html>
              
            
!

CSS

              
                * {
  margin: 0;
  padding: 0;
}

body{
  
background-color: #CACACF;

}
#title{
  border-style: ;
  color: #151549;
  font-size: 60px;
  text-align: center;
}
#headingp {
  font-size: 30px;
  text-align:center;
    color: #151549;
}
hr{
 position: solid; 
            top: 20px; 
            border: none; 
            height: 12px; 
            background: white; 
            margin-bottom: 50px; 
  border-radius: 100px;
}
img{
  
  border-radius: 30%;
}
#img-div{
  
 
}
#headline{
  margin: 20px;
  color: #5358BB;
  
}
h2{
  font-size: 30px;
  text-align: center;
  color: #151549;
}
.img-left{
  margin-left: 100px;
  vertical-align: middle;
  width: 200px;
    height: 200px;
  
  
}
.img-right{
  width: 200px;
  height: 200px;
  margin-right: 100px;
  
}
.img-text-right{
  text-align: right;
}
#gridcolomns{
  diplay: grid;
  grid-template-columns: 1fr 1fr;
}
              
            
!

JS

              
                
              
            
!
999px

Console