css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

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.

            
              <!--I added on the <head> tag a meta viewport so that the website could be responsive to the users' device.-->
<main class="container">
  <div class="background">
    <div class="row">
      <div class="col-xs-12 col-md-4 text-center">
      <img class="img-responsive" src="http://www.zonamovilidad.es/fotos/2/original_7.jpg" alt="Elon Musk" id="elon"/>
      </div>
    <div class="col-xs-12 col-md-8 pad-right pad-left"> 
      <h4>a tribute to </h4>
      <h1><strong>ELON MUSK</strong></h1>
      <h3>"I could either watch it happen or be part of it."</h3>
    </div>
    <div>
      <p class="text"> South African entrepreneur Elon Musk is known for founding Tesla Motors and SpaceX, which launched a landmark commercial spacecraft in 2012.</p>
     </div>
    </div>
  <br>
  <br>
  
    <div>
      <h2>Now a Little History...</h2>
    </div>
  
    <div>
      <p>Born in South Africa in 1971, Elon Musk became a multimillionaire in his late 20s when he sold his start-up company, Zip2, to a division of Compaq Computers. He achieved more success by founding X.com in 1999, SpaceX in 2002 and Tesla Motors in 2003. Musk made headlines in May 2012, when SpaceX launched a rocket that would send the first commercial vehicle to the International Space Station. He bolstered his portfolio with the purchase of SolarCity in 2016, and cemented his standing as a leader of industry by taking on an advisory role in the early days of President Donald Trump's administration.</p>
    </div>

    <img src="http://fundersandfounders.com/wp-content/uploads/2016/02/how-elon-musk-started-infographic.png" alt="" class="elon"/>

    <div>
      <p class="text-center">For more information about <a href="https://www.biography.com/people/elon-musk-20837159">Elon Musk</a> be sure to check his biography and all of his work.</p>
    </div>
    <footer>
		  <p class="text-center">This page has been authored and coded by <a href="mailto:msalas2199@hotmail.com">Mauricio Salas</a></p>
	  </footer>
  </div>
</main>

            
          
!
            
              /* @import was to import the font that I wanted for the text.*/

@import url(https://fonts.googleapis.com/css?family=Pacifico);
@import url(https://fonts.googleapis.com/css?family=Oswald);
@import url(https://fonts.googleapis.com/css?family=Lato);
@import url(https://fonts.googleapis.com/css?family=Poppins);

.background{
  border: none;
  padding: 20px;
  margin: 10px;
  margin-left: none;
  margin-right: none;
  position: absolute;
  background-color: rgb(241,241,241);
}

h4{
  text-align: center;
  font-size: 18px;
  margin: 20px;
  font-family: 'Pacifico', serif;
    font-size: 25px;
    color: #C23B22;
}

h1{
 text-align: center;
  font-size: 120px;
  font-family: Oswald;
  margin-top: -20px;
  margin-bottom: 30px;
  color: #000000;
  
}

h3{
  font-family: Lato;
  font-size: 20px;
  text-align: center;
  margin-top: -25px;
  margin-bottom: 30px;
  font-style: italic;
}

#elon{
  display: inherit;
  margin-right: 10px;
  margin-bottom: 10px;
  width: 100%;
  box-shadow: .5px 3px 10px #888888;
}

.text{
  font-family: Poppins;
  font-size: 25px;
  text-align: center;
  margin-right:15px;
  margin-left: 0 auto;
}

h2{
  text-align: center;
  font-family: Oswald;
  font-size: 50px;
  color: #000000;
}

p{
  text-align: justify;
  font-family: Lato;
  font-size: 18px;
  color: #000000;
  margin-left: 10px;
  margin-right: 10px;
  margin-top: 20px;
}  

.elon{
  display: block;
  margin: 0 auto;
  width: 60%;
  box-shadow: .5px 3px 10px #888888;
}

footer {
	padding: 10px;
	border-top: 1px solid #ccc;
	margin-top: 100px;
}

footer p{
  font-size: 14px;
	font-style: italic;
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console