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 id="main">
        <div id="title">
            <h1>Ken Block</h1>
            <p>
                Co-Founder of DC Shoes, extreme sports athlete, rally driver and hoonigan.
            </p>
        </div>

        <div id="img-div">
            <img src="https://www.speednik.com/files/2016/01/2016-01-12_19-49-24.jpg"
                alt="Ken Block standing next to a Mustang" id="image">
            <p id="img-caption">Ken Block stands next to the "Hoonicorn", a 1965 Ford Mustang with 1,400 horsepower and
                all wheel drive that will go 0-60 in 1.8 seconds!</p>
        </div>

        <div id="tribute-info">
            <h2>Here's a list of Ken Block's achievements:</h2>
            <ul>
                <li>Co-Founded Droors Clothing (DC Shoes) in 1993</li>
                <li>Participated in the Gumball 3000 Rally in 2005</li>
                <li>Began his 1st year in Rally racing and won Rookie of the Year</li>
                <li>Signed a sponsorship deal with Subaru in 2006</li>
                <li>Took home bronze in the 1st ever X-Games rally event</li>
                <li>Took home a silver medal in X-Games XIII rally event</li>
                <li>Appeared in a segment of the car show "Top Gear"</li>
                <li>Filmed the infamous "Gymkhana 2" infomercial with 52 million views</li>
                <li>Co-founded Gymkhana Grid, a gymkhana race held annually around the world</li>
                <li>Founded Hoonigan Racing Division in 2010</li>
                <li>Signed a sponsorship deal with Ford in 2010</li>
                <li>Won the Rally in the 100 Acre Wood for the 5th consecutive time</li>
                <li>Holds the world record for the world's fastest snowcat</li>
                <li>Founded the "Hoonigan" YouTube channel with 940 million views</li>
                <li>Appeared in three installments of the "Dirt" racing video games</li>
                <li>Appears in the 2015 "Need for Speed" video game</li>
                <li>Signs a deal with Audi in 2021 to help develop electric cars</li>
            </ul>

            <p id="quote"><i>"In life—from the simplest thing to the biggest thing—I want to be proud of what it is and stake my claim: That's mine and that's how I do it."</i></p>
            <p id="name"><i>--Ken Block</i></p>
        </div>

        <div>
            
           <footer><strong>If you have time, you should read more about this absolute mad lad on <a id="tribute-link" href="https://en.wikipedia.org/wiki/Ken_Block" target="_blank">Ken Block's Wikipedia entry.</a></strong></footer>
        </div>
    </div>

    <!--Information used in this website was sourced from Ken Block's Wikipedia page at https://en.wikipedia.org/wiki/Ken_Block and Google search, also the picture used is from https://www.speednik.com-->
              
            
!

CSS

              
                #main {
    background-color: #e6e6e69f;
    border-radius: 5px;
    font-family: 'Tahoma', sans-serif;
    margin-top: 1.7em;
    margin-bottom: 1.7em;
}

#title {
    text-align: center;
    padding-top: 1.5em;
    font-size: 1.2em;
}

h1 {
    color: #95D600;
    text-shadow: 2px 2px 8px #000000;
}

#title p {
    font-size: 0.8em;
    color: rgb(53, 53, 53);
}

#img-div {
    background-color: black;
    margin: 1em;
    border-radius: 5px;
}

#image {
    height: auto;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;
    padding-top: 1.1em;
}

#img-caption {
    color: #95D600;
    text-align: center;
    padding-bottom: 1.1em;
}

#tribute-info {
    text-align: center;
}

h2 {
    padding-top: 1.1em;
    padding-bottom: 1.1em;
    font-size: 1.1em;
}

ul {
    width: 33%;
    margin: auto;
    padding-bottom: 3em;
}

li {
    text-align: left;
    line-height: 2.5;
    color: rgb(53, 53, 53);
}

li:hover {
    color: #95D600;
    text-shadow: 2px 2px 8px #ffffff;
}

#quote {
    color: rgb(53, 53, 53);
    width: 35%;
    margin: auto;
}

#name {
    color: rgb(53, 53, 53);
    width: 35%;
    margin: auto;
    padding-top: 1em;
}

footer {
    text-align: center;
    padding: 2.5em 0;
    font-size: 1.1em;
}

#tribute-link {
    color: #95D600;
    text-shadow: 2px 2px 3px #000000;
}
              
            
!

JS

              
                
              
            
!
999px

Console