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 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

              
                <html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="/tribute_page/style.css">
</head>
<body>
    <main id="main">
        <h1 id="title">10 Interesting Facts about Elon Musk</h1>
        <div id="img-div">
            <img id="image" src="https://www.ft.com/__origami/service/image/v2/images/raw/http%3A%2F%2Fcom.ft.imagepublish.prod.s3.amazonaws.com%2F4b814a00-305c-11e7-9555-23ef563ecf9a?fit=scale-down&source=next&width=700" alt="Elon Musk">
            <p id="img-caption"><span>Elon Musk created a computer game when he was 12 years old.</span></p>
       </div>
       <div id="tribute-info">
           <li>Musk loved “The Hitchhiker’s Guide to the Galaxy,” as a boy and at age 12, he reportedly made a space-themed PC game called 'Blastar' which was sold to a magazine for $500.</li>
           <li>By 25, Musk had created Zip2, an online advertising platform, and was a millionaire by age 30 after selling the company to Compaq Computer in 1999.</li>
           <li>Musk followed that success with the creation of the online bank, X.com, which was later merged into PayPal which eBay bought in 2002 for $1.5 billion.</li>
           <li>Musk founded SpaceX, also known as Space Exploration Technologies Corp, in 2002. SpaceX is scheduled to launch two crewed flights for NASA in 2021, including one in the spring, and four cargo refueling missions over the next 15 months.</li>
           <li>Due to lack of funding, Musk invested his own money for the development of SpaceX rockets.</li>
           <li>After setting ambitious goals for the model's ramp-up, Musk hit a rough spot in 2018 as Tesla Motors, where he became a major funder, missed targets while burning through cash.</li>
           <li>In 2018, Musk jolted markets by announcing that he was considering taking Tesla private and said that he had "secured" financing for doing so. Musk quickly dropped the go-private effort, but became embroiled in a bitter dispute with the Securities and Exchange Commission (SEC).</li>
           <li>Musk has a baby with the most unusual name, which he shortens to “X.” Musk had said it’s pronounced “just like the letter X. AE is pronounced ‘ash’, as in Old English. A-12 is also pronounced just like it reads. Refers to the Archangel-12 CIA reconnaissance plane.”</li>
           <li>Musk made an appearance in "The Simpsons" episode, “The Musk Who Fell to Earth”.</li>
           <li>Musk publicly sparred with a British caver, who had mocked the Tesla CEO's offer of a mini-submarine to rescue young soccer players trapped in a cave in Thailand in the summer of 2018.</li>
       </div>

       <h3>Do you know anything more fun facts about Elon Musk? If you do, please click the link below and drop us a message.</h3>

       <a id="tribute-link" href="https://www.deccanherald.com/" target="_blank">Deccan Herald</a>

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

CSS

              
                body{
    font-family: Helvetica, sans-serif, Arial;
    font-size: 14px;
    text-align: center;
    background-color: rgb(190, 187, 187);
}
#image{
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}
#img-caption{
    font-weight: bold;
}
#tribute-info{
    line-height: 20px;
    text-align: left;
    margin: 0 auto;
    padding: 10px;
    white-space: nowrap;
}
              
            
!

JS

              
                
              
            
!
999px

Console