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

              
                <!DOCTYPE html>
<html>
  <head>
    <title>Elon Musk Tribute</title>
    <meta charset="utf-8">
    <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"/>
    <link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Covered+By+Your+Grace" />
    <link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Candal" />  
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
        <style>
  /*background*/
.firstrow {
  background: repeating-linear-gradient(45deg, #EDEFEF 1px, #DEEAEA 4px);
  padding-bottom: 20px;
}

.firstrowtext {
  padding: 50px 0px 0px 50px;
  text-shadow: 1px 1px black;
}

.caption {
  background: #0099CC ;
  color: white;
  padding: 15px 10px 5px 10px;
}

.mainpic {
  z-index: 1;
  position: relative;
  margin-top: 50px;
}

.secondrow {
  background:  #0099CC;
  color: white;
  padding-top: 25px;
  padding-bottom: 20px;
  text-align: justify;
}

.thirdrow {
  background: repeating-linear-gradient(-45deg, #EDEFEF 1px, #DEEAEA 4px);
  padding: 0px 20px 20px 20px;
  font-family: "Candal";
}

.thirdtitle {
  padding-bottom: 10px;
}

.forthrow {
  background: #0099CC;;
  padding: 20px;
  text-align: center;
  color: white;
}

.forthsecondrowA {
  font-family: "covered By Your Grace";
  font-size: 25px;
}

.forthfirstrowB, .forthfirstrowA {
  font-family: "Candal";
}

.forthfirstrowB {
  padding: 50px 0px 50px 0px;
}

.fa {
  color: white;
}

.fa:hover {
  color: lavender;
}

.footer {
  background: repeating-linear-gradient(-75deg, #EDEFEF 1px, #DEEAEA 4px);
  text-align: center;
  padding: 10px;
}

.subimage {
  width: 85%;
  min-width: 150;
}

/*font*/
h1 {
  font-size: 10em;
  color: #0099CC;
}

.secondrow {
  font-size: 16px;
}

.thirdrow {
  text-align: center;
}

span {
  font-size: 3em;
}

/*Medium Device*/
@media (min-width: 990px) and (max-width: 1199px) {
  .firstrowtext {
    padding-top: 15px;
  }
  
  .subimage {
    padding-top: 10px;
  }
  
  .forthfirstrowB {
    padding-top: 35px;
  }
}

/*Small Device*/
@media (min-width: 768px) and (max-width: 991px) {
  .firstrowtext {
    font-size: 10px;
    padding-top: 35px;
  }
  
  .subimage {
    padding-top: 60px;
  }
  
  .forthfirstrowB {
    padding-top: 50px;
  }
}
/*Extra Small Device*/
@media (max-width: 767px) {
  .firstrowtext {
    text-align: center;
  }
  
  img {
    display: block;
    margin: 0 auto;
  }
  
  .subimage {
    width: 35%;
  }
  
  .company-logo {
    padding-top:20px;
  }
  
  .big-logo {
    width: 50%;
  }
  
  .forthfirstrowB {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}    
    </style>
  </head>
  
  <body>
    <div class="container">
    <!--1st row name + pic + caption-->
      <div class="row firstrow">
        <div class="col-sm-5 firstrowtext">
          <h1>|Elon <br> Musk|</h1>
        </div>
        <div class="col-lg-6 col-lg-offset-0 col-sm-5 col-sm-offset-1 mainpic">
          <img alt="Elon Musk" src="https://s-media-cache-ak0.pinimg.com/originals/ac/ee/6c/acee6ccf6a67be282f0b760cd35e8fc3.jpg" class="img-responsive">
          <div class="caption">
            <p>The businessman, the investor, the engineer, the inventor, the man who wants to colonize Mars</p>
          </div>
        </div>
      </div>
    <!--2nd row short bio -->
      <div class="row secondrow">
        <div class="col-sm-6 col-sm-offset-1">
          <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. <br>
          </p>
          <p>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>
        <div class="col-lg-3 col-lg-offset-1 col-sm-4 col-sm-offset-0">
          <img alt="Elon Musk" src="https://image.ibb.co/memeLQ/elon_musk_portrait_by_koraynergiz_d7aacqu.png" class="subimage">
        </div>
      </div>
    <!--3rd row company list-->
      <div class="row thirdrow">
        <h3 class="thirdtitle">Elon Musk's Companies <br></h3>
        <div class="thirdfirstrow">
          <div class="col-sm-3 col-xs-6">
            <img alt="zip2" src="https://mainan-anak.net/wp-content/uploads/2017/07/Zip2-1.png" class="img-responsive company-logo">
          </div>
          <div class="col-sm-1 col-xs-6">
            <img alt="Paypal" src="https://mainan-anak.net/wp-content/uploads/2017/07/photo.png" class="img-responsive company-logo big-logo">
          </div>
          <div class="col-sm-3 col-xs-6">
            <img  alt="SpaceX" src="https://mainan-anak.net/wp-content/uploads/2017/07/9a214b68fc4146d02a5b41882e79987c-elon-musk-space-exploration.png" class="img-responsive company-logo">
          </div> 
          <div class="col-sm-1 col-xs-6">
            <img alt="Tesla" src="https://mainan-anak.net/wp-content/uploads/2017/07/Tesla-Motors-logo-3.png" class="img-responsive company-logo big-logo">
          </div>
          <div class="col-sm-3 col-xs-6">
            <img alt="SolarCity" src="https://mainan-anak.net/wp-content/uploads/2017/07/og-sc-logo.png" class="img-responsive company-logo">
          </div>
        </div>
        <div class="thirdsecondrow">
          <div class="col-sm-3 col-xs-6">
            <img alt="Hyperloop" src="https://mainan-anak.net/wp-content/uploads/2017/07/b26dcf47207673.5873ddf514039.png" class="img-responsive  company-logo">
          </div>
          <div class="col-sm-3 col-xs-6">
            <img alt="OpenAI" src="https://mainan-anak.net/wp-content/uploads/2017/07/logo-OpenAI-small.png" class="img-responsive  company-logo">
          </div>
          <div class="col-sm-3  col-xs-6">
            <img alt="NeuraLink" src="https://mainan-anak.net/wp-content/uploads/2017/07/neuralink_logo_black.png" class="img-responsive company-logo">
          </div> 
          <div class="col-sm-3  col-xs-12">
            <img alt="Boring Company" src="https://mainan-anak.net/wp-content/uploads/2017/07/The_Boring_Company_Logo.svg_.png" class="img-responsive company-logo big-logo">
          </div>
        </div>
      </div> 
    <!--4th row quote + wikipedia link -->
      <div class="row forthrow">
        <div class="col-lg-4 col-sm-offset-1 col-sm-6">
          <div class="forthfirstrowA">
            <h5>Does he ever going to retire?</h5>
          </div>
          <div class="forthsecondrowA">
            <p>"The idea of lying on a beach as my main thing, just sounds like the worst - it sounds horrible to me. I would go bonkers. I would have to be on serious drugs"</p>
          </div> 
        </div>
        <div class="col-sm-4 col-lg-offset-2 col-sm-offset-0 forthfirstrowB">
          <h5>Learn more about Elon:</h5>
          <a href="https://en.wikipedia.org/wiki/Elon_Musk" target="_blank">
            <i class="fa fa-wikipedia-w fa-3x"></i>
          </a>  
            <span>  |  </span>
          <a href="https://twitter.com/elonmusk" target="_blank">  
            <i class="fa fa-twitter fa-3x"></i>
          </a>  
            <span>  |  </span>
          <a href="https://www.instagram.com/elonmusk/" target="_blank">
            <i class="fa fa-instagram fa-3x"></i>
          </a>  
        </div>
      </div>
    <!--5th row footer -->
      <div class="row footer">
        <p>written & coded by <a href="https://www.freecodecamp.org/fcc4a71db2c" target="_blank"><u>Fajar Putra</u></a></p>

      </div>  
    </div>
  </body>
</html>




              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console