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 lang="en">
<head>
    <meta charset="UTF-8">
    <title>Product Landing Page</title>
    <link href="style.css" rel="stylesheet" type="text/css" media="screen">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>

<!---------------------------------------- NAVIGATION BAR & TOP MENU ---------------------------------------->
<header id="header">
    <nav id="nav-bar">
        <div id="logoSection">
            <img src="https://s3.amazonaws.com/freecodecamp/original_trombones.png" id="header-img">
        </div>
        <div id="navlist">
            <ul>
                <li><a class="nav-link" href="#featuresSection">Features</a></li>
                <li><a class="nav-link" href="#videoSection">How It Works</a></li>
                <li><a class="nav-link" href="#pricingSection">Pricing</a></li>
            </ul>
        </div>
    </nav>
</header>

    <!---------------------------------------- TOP SECTION ---------------------------------------->
    <main id="main">
        <h2>Handcrafted, home-made masterpieces</h2>
        <form id="form" action="https://www.freecodecamp.com/email-submit">
            <input name="email" id="email" type="email" placeholder="Enter your email here"/>
            <input id="submit" type="submit" value="GET STARTED" class="btn" />
        </form>

    </main>

    <!---------------------------------------- FEATURES ---------------------------------------->
    <section id="featuresSection">
        <div id="topDiv">
            <div class="icon">
                <i class="fa fa-3x fa-fire"></i>
            </div>
            <div class="description">
                <h2>Premium Materials</h2>
                <p>Our trombones use the shiniest brass which is sourced locally. This will increase the longevity of our purchase.</p>
            </div>
        </div>

        <div id="middleDiv">
            <div class="icon">
                <i class="fa fa-3x fa-truck"></i>
            </div>
            <div class="description">
                <h2>Fast Shipping</h2>
                <p>We make sure you receive your trombone as soon as we have finished making it. We also provide free returns if you are not satisfied.</p>
            </div>
        </div>

        <div id="bottomDiv">
            <div class="icon">
                <i class="fa fa-3x fa-battery-full"></i>
            </div>
            <div class="description">
                <h2>Quality Assurance</h2>
                <p>For every purchase you make, we will ensure there are not damages or faults and we will check and test the pitch of your instrument.</p>
            </div>
        </div>
    </section>

    <!---------------------------------------- TOP SECTION ---------------------------------------->
    <section id="videoSection">
        <iframe id="video" src="https://www.youtube-nocookie.com/embed/y8Yv4pnO7qc?rel=0&controls=0&showinfo=0" width="320" height="240" controls></iframe>
    </section>

    <!---------------------------------------- BOTTOM SECTION ---------------------------------------->
    <section id="pricingSection">
        <div class="product">
            <div class="h3">
                <h3>TENORE TROMBONE</h3>
            </div>

            <div class="p">
                <p>$600</p>
            </div>
            <div class="ul">
                <ol>
                    <li>Lorem Ipsum</li>
                    <li>Lorem Ipsum</li>
                    <li>Lorem Ipsum Dolor</li>
                    <li>Lorem Ipsum</li>
                </ol>
            </div>
            <button class="btn">SELECT</button>
        </div>

        <div class="product">
            <div class="h3">
                <h3>BASS TROMBONE</h3>
            </div>
            <div class="p">
                <p>$900</p>
            </div>
            <div class="ul">
                <ol>
                    <li>Lorem Ipsum</li>
                    <li>Lorem Ipsum</li>
                    <li>Lorem Ipsum Dolor</li>
                    <li>Lorem Ipsum</li>
                </ol>
            </div>
            <button class="btn">SELECT</button>
        </div>

        <div class="product">
            <div class="h3">
                <h3>VALVE TROMBONE</h3>
            </div>
            <div class="p">
                <p>$1200</p>
            </div>
            <div class="ul">
                <ol>
                    <li>Plays similar to a Trumpet</li>
                    <li>Great for Jazz Bands</li>
                    <li>Lorem Ipsum Dolor</li>
                    <li>Lorem Ipsum</li>
                </ol>
            </div>
            <button class="btn">SELECT</button>
        </div>
    </section>

    <!---------------------------------------- FOOTER SECTION ---------------------------------------->
    <footer id="footer">
        <div id="topRow">
            <ul>
                <li>Privacy</li>
                <li>Terms</li>
                <li>Contract</li>
            </ul>
        </div>
        <div><p>Copyright 2016, Original Trombones</p></div>
    </footer>
</body>
</html>
              
            
!

CSS

              
                html, body{
    background-color: #F5F5F5;
    margin: auto;
    padding: 0;
    width: 1100px;
    justify-content: center;
}

#header{
    position: fixed;
    display: flex;
    top: 0;
    background-color: #F5F5F5;
    width: 1100px;
    height: 50px;
}

#header-img{
    position: absolute;
    width: 250px;
    top: 20px;
    left: 10px;
}

#navlist{
    position: relative;
    top: 10px;
    left: 700px;
}

#navlist ul{
    width: 35vw;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    list-style-type: none;
    float: right;
    padding: 0 15px 0 15px;
}

#navlist ul li a{
    text-decoration: none;
    color: black;
}

#main{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 200px;
    margin-top: 50px;
}

#email{
    max-width: 275px;
    width: 100%;
    padding: 5px;
}

.btn{
    max-width: 150px;
    width: 100%;
    height: 30px;
    margin: 15px 0;
    background-color: #f1c40f;
}

#featuresSection{
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

#topDiv{
    display: flex;
}

#middleDiv{
    display: flex;
}

#bottomDiv{
    display: flex;
}

.icon{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 125px;
    width: 20vw;
    color: darkorange;
}

.description{
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 125px;
    width: 80vw;
    padding: 5px;
}

#videoSection{
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

#video{
    max-width: 560px;
    width: 100%;
}

#pricingSection{
    margin-top: 60px;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.product{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: calc(100%/3);
    margin: 10px;
    border: 1px solid black;
    border-radius: 3px;
}

.product .h3{
    background-color: #dddddd;
    color: black;
    padding: 15px 0;
    width: 100%;
}

.p{
    font-weight: 700;
}

.product ol{
    margin: 15px 0;
    list-style: none;
}

.product ol li{
    padding: 5px;
}

#footer{
    margin-top: 30px;
    background-color: #dddddd;
    padding: 20px;
}

#footer ul{
    display: flex;
    justify-content: flex-end;
}

#footer ul li{
    padding: 0 10px;
    list-style: none;
}

#footer p{
    margin-top: 5px;
    display: flex;
    justify-content: flex-end;
    font-size: 16px;
    color: #444444;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    body{
        width: 20%;
        justify-content: center;
        margin: 25px;
    }
    #navlist{
        position: relative;
        top: 10px;
        left: 150px;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    body{
        width: 45%;
        justify-content: center;
    }
    #navlist{
        position: relative;
        top: 10px;
        left: 150px;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    body{
        width: 50%;
        justify-content: center;
    }
    #navlist{
        position: relative;
        top: 10px;
        left: 335px;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    body{
        width: 75%;
        justify-content: center;
    }
    #navlist{
        position: relative;
        top: 10px;
        left: 490px;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    body{
        width: 100%;
        justify-content: center;
    }
    #navlist{
        position: relative;
        top: 10px;
        left: 700px;
    }
}
              
            
!

JS

              
                
              
            
!
999px

Console