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>
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<head>
  <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
</head>
<!-- DO NOT COPY PASTE THE FIRST FEW CLASSES/ID OF THE CSS. -header, titre, soustitre, quote- IT WILL DISRUPT THE ENTIRE WEB DESIGN -->

<body>
  <title>Elon Musk Tribute Page</title>
  <div id="main">
    <!--Image and first few texts for the page -->
    <div class="row">
      <div class="col-md-12">
        <div id="header">
          <h1 id="title" style="position: relative; color:rgb(255,100,0)"> Elon Musk </h1>
          <h3 class="soustitre" style="position: relative; color:rgb(235,196,100);"> The Real Life Tony Stark</h3>
        </div>
      </div>
    </div>
    <div class="row">
      <div class="col-sm-4">
      </div>
      <div class="col-sm-4">
        <blockquote cite="https://www.goodreads.com/quotes/7047080-good-ideas-are-always-crazy-until-they-re-not">
          <h5 id="quote">"Good ideas are always crazy until they are not." </h5>
        </blockquote>
      </div>
    </div>
    <div id="img-div">
      <img id="image" src="https://everydaypowerblog.com/wp-content/uploads/2014/12/elon-musk-quotes-2.jpg", alt="musk">
      <span id="img-caption">
        <p>The smiling inspirational billionare genius at the foreground of one of his company presentations.</p>
      </span>
    </div>
    <ul id="Biodata" , style="position: relative;">
      <li>Born: Pretoria, South Africa</li>
      <li>Birth Year: 1971</li>
      <li>Descent: German-Canadian-South African </li>
    </ul>

    <!-- Content for Tribute Page-->
    <p id="Timeline" style="position: relative;">
      <span class="para-header">Musk's Family History</span><br> Maternal Ancestors were Swiss German's who came to New York during the American Revolutionary War. Their last name were Haldeman. <br>

    </p>
  </div>

</body>

</html>
              
            
!

CSS

              
                body{
			background-color: rgb(45,45,40);
			}
			#header {
				width: 100%;
				height: 85%;
				position: relative;
				top: 0;
				border-style: solid;
				border-color: rgb(82, 108, 186);
				background-color: rgb(82, 108, 186);
			}

			#title {					
				max-width: 45%;
				max-height: 20%;
				top: 0%;
				left: 36%;
				z-index: 1; 
				font-family: "Times New Roman", Helvetica, monospace, serif;
			}
			.soustitre{
				max-width: 45%;
				max-height: 45%;
				top: 40%;
				left: 38%;
				z-index: 2; 
			}
			.para-header{
				font-family: "Monospace", "Times New Roman", "Times", "serif";
				font-size: 22px;
			}
			#img-div{
				position: absolute;
				max-width: 45%;
				max-height: 45%;
				top: 75%;
				left: 47%;
				overflow: visible;
			}
			#image{
    			position:relative;
   				max-width:100%;
    			max-height:100%;
    			margin-top:-50%;
    			margin-left:-50%;
			}
			#quote {
				position: relative;
				font-family: 'Material', cursive;
				color: rgb(231,191,81);
				max-width: 90%;
				max-height: 10%;
				width: 100%;
				top: 65%;
				left: 0%;
			}
      #img-caption{
        position: relative;
        color: rgb(128,197,244);
        left: 4.6%;
      }
			#Biodata{
				padding-left: 2%;
				margin-top: 10%;
				max-width: 23%;
				border-style: ridge;
				color: rgb(102,153,244);
			}
			#Timeline{
				color: rgb(102,153,244);
				margin: 10%;
			}
              
            
!

JS

              
                document.getElementsByTagName("h1")[0].style.fontSize = "80px";
              
            
!
999px

Console