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

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

<!DOCTYPE html>
<html>



<body id="main">
    <!-- title -->

    <header id="title">
        <div class="container">
            <h1>David Mitchell</h1>
        </div>
    </header>


    <!--img  -->
    <section id="img">
        <div id="img-div">
            <img id="image" src="https://www.irishtimes.com/polopoly_fs/1.4065801.1572352055!/image/image.jpg_gen/derivatives/ratio_1x1_w1200/image.jpg">
            <p id="img-caption">David Mitchell</p>
        </div>
    </section>

    <!-- tributeinfo -->
    <section id="tribute-info">
        <div class="container">
            <p>
                David Mitchell is a British actor and comedian. He is known for appearing on famous British panel shows,
                such as: Would I Lie to You?, Was it Something I Said?, and QI. However, Mitchell is best known his
                acting roles, particularly with his best friend Robert Webb. With Webb, he his best known for his role
                as Mark Corrigan in the sitcom Peep Show as well as his various performances on their sketch show That
                Mitchell and Web Look. 
            </p>
            <p> Below are some of his most famous roles:
          </p>
        </div>
    </section>

    <!-- roles -->
    <section id="roles">
        <div class="container">
            <div class="box">
                <img src="https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcTObbSz0O-7-rgRdC1qH-74KIjkU8_iBIFcye3MZ6BzMm_YKEYH">
                <p>Peep Show</p>
            </div>
            <div class="box">
                <img src="https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcRQcTrFuRpbcbuBl9TuuYd395yhOyN7v2Z1m7NkBm9TcjccSOCf">
                <p>That Mitchell and Web Look</p>
            </div>
            <div class="box">
                <img src="https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcRQL0GkqBGFe99MfBMxalouRdHCH_u2Ib-VrxRXHl-cmTaNPd8A">
                <p>Upstart Crow</p>
            </div>
        </div>
    </section>

    <!-- link -->
    <section id="link">
             <a target="_blank"  id="tribute-link" href="https://en.wikipedia.org/wiki/David_Mitchell_(comedian)">David Mitchell's
                Wikipedia Page</a>
  
    </section>
</body>






</html>

              
            
!

CSS

              
                :root{
    --primary: rgb(148, 153, 161);
    --secondary: rgb(102, 101, 101);
    --shadow: 5px 5px #888888;
    --border: var(--secondary) solid 1px;
}

body{
   font: 15px/1.5 Arial, Helvetica, sans-serif;
   padding: 0;
   margin: 0;
   background-color: lightgray;
}

/* global */
.container{
    width:80%;
    margin:auto;
    overflow: hidden;
}

/* title */
#title h1{
    text-align: center;
    font-size: 55px;
}

/* img */
#img-div{
    max-width: 500px;
    height: auto;
    margin: auto;
    width: 100%;

}

#img-div img{
    max-width: 100%;
    height: auto;
    margin: auto auto 10px auto;
    border-radius: 10px;
    display: block;
}

#img-caption{
    text-align: center;
    font-size: 15px;
    background: var(--primary);
    border: var(--border);
    padding: 10px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: table;
    margin: auto;
    margin-bottom: 10px;
}

/* tribute info */
#tribute-info div{
    margin: auto;
    background: var(--primary);
    border: var(--border);
    padding: 10px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

#tribute-info p{
    text-align: center;
    font-size: 25px;
}
/* roles */
#roles{
    margin: 20px 75px 10px 75px;
    border: var(--border);
    background: var(--primary);
    box-shadow: var(--shadow);
    border-radius: 10px;

}

#roles .box{
    float: left;
    text-align: center;
    width: 30%;
    padding: 10px;
    
}

#roles .box img{
    width:180px;
    border-radius: 10px;
}

#roles .box p{
    font-weight: bold;
    padding: 5px;
    margin: auto;
}

/* footer */
#tribute-link{
    border: var(--border);
    background: var(--primary);
    box-shadow: var(--shadow);
    border-radius: 10px;
    text-decoration: none;
    color: initial;
    padding: 20px;
    display: block;
    text-align: center;
    font-weight: bold;
    display: table;
    margin: 20px auto 20px auto;
    font-size: 18px;

}

/* media queries */
@media (max-width: 768px){
    #roles .box{
        float: none;
        text-align: center;
        width: 100%;
    }

    #img-div img{
        width: 70%;
        display: block;
        margin-bottom: 10px;
    }
}
              
            
!

JS

              
                
              
            
!
999px

Console