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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <div><h1 class="purpleRain text-center"><strong>A TRIBUTE TO ELON MUSK: "THE REAL IRONMAN"</strong></h1>
<div><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/f/f2/Elon_Musk_gives_tour_for_President_Barack_Obama.jpg/1920px-Elon_Musk_gives_tour_for_President_Barack_Obama.jpg" alt="ElonMusk" width="1350" height="600" class="center-block" class="img-circle"></div>
<figcaption>Elon Musk (brown suit) showing Former US President Barack Obama (Musk's right) around The Falcon 9 launch pad on SpaceX grounds in 2010. He founded SpaceX in 2002.</figcaption>
<br>
<div class="shiftLeft"><h2 class="purpleRain"><strong>WHO IS ELON MUSK?</strong></h2>
<p class="largeText">Elon Musk is a South African-born American business man, innovator and tech enthusiast. He is the CEO of three companies: Tesla, SpaceX and SolarCity.<br><br>
He is the oldest of three children and he has been married twice -- and divorced twice (although he remarried and divorced one of his wives twice) -- with five kids to show for it. He has tried his hardest to be supportive and emotionally available to his children in order to be emotionally distant like his father.<br><br>
He enjoys reading and it has been said that at the age of 10, he was reading about two books a day. He is also an avid videogamer and regularly plays "shoot 'em ups" with his staff.<br><br>
As of June 2016, he has an estimated net worth of US$11.5 billion, making him the 83rd wealthiest person in the world. In December 2016, Musk was ranked 21st on Forbes list of The World's Most Powerful People.<br><br>
Musk has stated that he does not pray, or worship any being, although previously admitted to praying before an important Falcon 1 launch, asking "any entities that [were] listening", to "bless [the] launch". When asked whether he believed "religion and science could co-exist", Musk replied "probably not".<br><br>
Musk has frequently spoken out about the potential dangers of artificial intelligence, declaring it "the most serious threat to the survival of the human race". During an interview at the MIT AeroAstro Centennial Symposium, Musk described AI as "[humanity's] biggest existential threat", further stating, "I'm increasingly inclined to think that there should be some regulatory oversight, maybe at the national and international level, just to make sure that we don't do something very foolish." Musk described the creation of artificial intelligence as "summoning the demon".<br><br>
His most ambitious goal currently is to create a human colony in Mars in order to prevent the extinction of the human race. </p>
<br>
<h2 class="purpleRain"><strong>COMPANIES FOUNDED</strong></h2>
<p>
  <ul class="largeText">
    <li><strong>1995:</strong> Zip2</li>
    <li><strong>1999:</strong> X.com and PayPal</li>
    <li><strong>2002:</strong> SpaceX</li>
    <li><strong>2003:</strong> Tesla</li>
    <li><strong>2006:</strong> SolarCity</li>
    <li><strong>2013:</strong> Hyperloop</li>
    <li><strong>2015:</strong> OpenAI</li>
    <li><strong>2016:</strong> The Boring Company</li>
</ul>
</p>
  </div>
<p class="quotation">"I would like to die on Mars; just not on impact."<br> - Elon Musk</p>
</div>
<div class="text-center solo"><p>For more information on Elon Musk: <a href="https://en.wikipedia.org/wiki/Elon_Musk" target="_blank">CLICK HERE.</a></p>
</div>
<footer><strong>Created happily by Dr. Ifeanyi Chukwuka (c) 2017.</strong></footer>
              
            
!

CSS

              
                h1{
  text-align:center;
  font-size:40px;
  padding-top:15px;
  font-family:Arial;
  font-weight:bold;
}
figcaption{
  text-align:center;
  font-size:13px;
  color:purple;
}
.shiftLeft{
  margin-left:35px;
  margin-right:35px;
  }
div{
  margin-top:25px;
  margin-bottom: 25px;
  }
footer{
  text-align:center;
  color:purple;
  background-color:lavender;
  padding-top:5px;
  font-size:13px;
 }
.quotation{
  font-size: 45px;
  text-align:center;
  color: purple;
  font-style:italic;
  font-family:Serif;
}
.largeText{
  font-size:14px;
}
.purpleRain{
  color:purple;
}
.solo{
  background-color:white;
  font-size:13px;
  font-weight:bold;
}
              
            
!

JS

              
                
              
            
!
999px

Console