Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
  <title>Product Landing Page</title>
</head>
<body>
<div id="header">
    <div id="image">
    <img src="logo.jpg" alt="BLUE-The Perfect Choice">
    </div>
    <h2 id="company-name">BLUE-THE PERFECT CHOICE</h2>
    <div id="nav-bar">
        <a href="#heading">Features</a>
        <a href="#video">Styles</a>
        <a href="#pricing">Pricing</a>
    </div>
</div>    
    <div id="body">
    <h1 id="heading"> Designed for your comfort</h1>
        <div id="description">
        <div class="content">
            <h2 class="content-title">
            Premium Materials
            </h2>
            <p class="content-description">
            The materials are top quality and we use the best possible fabrics to provide supreme comfort for you.
            </p>
        </div>
            <div class="content">
            <h2 class="content-title">
                Super Fast Shipping
                </h2>
                <p class="content-description">
                We deliver our items super fast to the customer. We also provide free returns in case you aren't satisfied with our products.
                </p>
            </div>
            <div class="content">
            <h2 class="content-title">
                Quality Assurance
                </h2>
                <p class="content-description">
                We work really hard to ensure that the quality of the clothes is always top notch and that there are no defects or damages.
                </p>
            </div>
        </div>
        <div id="video">
        <iframe id="videoplay" width="600" height="400" src="https://www.youtube.com/embed/_cBmnRsh8Hw?controls=1"></iframe>
        </div>
        <div id="pricing">
        <div class="shirt">
            <div class="type">T-SHIRTS</div>
            <h2 class="price">$60</h2>
            <ul class="pricebar">
                <li class="priceitem">Pure Cotton </li>
                
                <li class="priceitem">Beautifully Designed</li>
                <li class="priceitem">Superior Comfort</li>
                <li class="priceitem">5 Different Colors</li>
            </ul>
             <button class="button" type="button"><strong>GO</strong></button>
            </div>
            <div class="pant">
            <div class="type">PANTS</div>
                <h2 class="price">$80</h2>
                <ul class="pricebar">
                <li class="priceitem">Top Quality</li>
                    <li class="priceitem">Superior Looks</li>
                    <li class="priceitem">Different Styles</li>
                    <li class="priceitem">5 Different Colors</li>
                </ul>
                 <button class="button" type="button"><strong>GO</strong> </button>
            </div>
            <div class="coats">
            <div class="type">COATS</div>
                <h2 class="price">$250</h2>
                <ul class="pricebar">
                <li class="priceitem">Wollen Fabric</li>
                    <li class="priceitem">Hand-made</li>
                    <li class="priceitem">Designed for comfort</li>
                    <li class="priceitem">Long Lasting Fabric</li>
                </ul>
                <button class="button" type="button"><strong>GO</strong></button>
            </div>
        </div>
        <div id="email-form">
        <form id="form">
            <input id="email" type="email" placeholder="Enter Your E-Mail Address" required>
            <input id="submit" action="https://www.freecodecamp.com/email-submit" value="SUBSCRIBE" type="submit">
            </form>
        </div>
        </div>
    <div id="footer">
    <div class="footer-item">
        <a href="#">Privacy</a>
        </div>
        <div class="footer-item">
        <a href="#">Terms</a>
        </div>
        <div class="footer-item">
            <a href="#">Contact</a>
        </div>
        </div>
  <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
</body>
</html>
              
            
!

CSS

              
                body{
font-family:fantasy;
}

#body{
    margin-top: 80px;
    
}
#header{
    display: flex;
    position: fixed;
    top: 0;
    justify-content: space-between;
    width: 100%;
    background-color: #333;
    color: hotpink;
}

#nav-bar a{
    margin-right: 30px;
    text-decoration: none;
    color: lightpink;
}

#nav-bar{
    margin-right: 30px;
    padding: 20px;
    align-content: center;
    color:aquamarine;
    display: flex;
}


#nav-bar a:visited{
    color: cornsilk;
}

#items{
    display: flex;
    align-content:space-between;
    list-style-type: none;
}

.nav-link{
    padding: 5px 20px;
    align-items: flex-end;
    
}

#heading{
    text-transform: uppercase;
    text-align: center;
}

#description{
    margin-left: 20%;
}

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

#videoplay{
    margin: auto;
}

#pricing{
    display: flex;
    justify-content: center;
}

.shirt{
    border: 5px solid black;
    margin: 0 10px;
    text-align: center;
}

.pant{
    border: 5px solid black;
    margin: 0 10px;
    text-align: center;
}

.coats{
    border: 5px solid black;
    margin: 0 10px;
    text-align: center;
}

.type{
    background-color: antiquewhite;
    padding: 10px 5px;
}

.pricebar{
list-style-type: none;
    text-align: left;
    margin: 10px 10px;
}

.priceitem{
    margin: 5px 0;
}

.button{
    cursor: pointer;
    border-radius: 4px;
    color: darkred;
    padding: 10px 20px;
    border: 0;
    font-weight: 400;
    margin: 15px 0;
}

#footer{
    display: flex;
    justify-content: space-around;
    background-color: bisque;
    padding: 20px;
    
}

#email-form{
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

#submit{
cursor: pointer;
    border-radius: 4px;
    padding: 10px 20px;
    border: 0;
    font-weight: 600;
}

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

@media only screen and (max-width: 900px)
{
    #nav-bar{
        flex-direction: column;
        padding: 10px;
        margin-right: 10px;
    }
    #body{
        padding-top: 90px;
    }
    
}

@media only screen and (max-width: 746px)
{
    #header{
        flex-direction: column;
        align-items: center;
    }
    #nav-bar{
        padding: 0px;
        margin: 0px;
    }
    }

@media only screen and (max-width: 655px){
    .pricebar{
        margin: 0;
    }
    .shirt{
        margin: 0;
    }
    .pant{
        margin: 0;
    }
    .coats{
        margin: 0;
    }
    #description{
        margin-left: 0;
    }
}

@media only screen and (max-width: 426px){
    #pricing{
     flex-direction: column;   
    }
    .shirt{
        margin: 25px 20px;
    }
    .pant{
        margin: 25px 20px;
    }
    .coats{
        margin: 25px 20px;
    }
    #submit{
        margin-top: 5px;
    }
    #description{
        margin-left: 0px;
    }
}
              
            
!

JS

              
                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

/***********
INSTRUCTIONS:
  - Select the project you would 
    like to complete from the dropdown 
    menu.
  - Click the "RUN TESTS" button to
    run the tests against the blank 
    pen.
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!
    ************/

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments. 

              
            
!
999px

Console