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

              
                <!doctype html>
<html>
<head>
  <meta>
  <title></title>
  <link rel="stylesheet" type="text/css" href="landing-page.css"/>
</head>
<body>

    <header id="header">
        <img id="trombone" src="../Landing Page/Images/trombone-logo.png">        
        <nav id="nav-bar">
            <a class="nav-link" href="#prem-ship-qa-parent">Features</a>
            <a class="nav-link" href="#video">How it Works</a>
            <a class="nav-link" href="#trombone-types">Pricing</a>       
        </nav>
    </header>

    <div id="blank-1"></div>

    <div id="div-1">
        <h1 style="font-size: 24px;">Handcrafted, home-made masterpieces</h1>
        <form id="form">
            <input placeholder="Enter your email address" id="email" type="email"><br>
            <button id="submit" type="submit" action="https://www.freecodecamp.com/email-submit">GET STARTED</button>
        </form>
    </div>

    <div id="blank-2">

    </div>

    <div id="prem-ship-qa-parent" >

        <div id="prem-ship-qa-children">

            <div id="premium-materials">
                <img id="prem-img" src="../Landing Page/Images/premium-materials.png">
                <p class="space-between-1">
                    :&emsp;<br>
                    :&emsp;<br>
                    :&emsp;<br>
                </p>
                <div id="prem-text">
                    <h1 style="font-size:27px; font-weight:550">Premium Materials</h1>
                    <p class="prem-ship-qa-text">Our trombones use the shiniest brass which is sourced locally. This will increase the longevity of your purchase.</p>
                </div>
            </div> 

            <div id="fast-shipping">
                <img id="ship-img" src="../Landing Page/Images/fast-shipping.png">    
                <p class="space-between-1">
                    :&emsp;<br>
                    :&emsp;<br>
                    :&emsp;<br>
                </p>
                <div id="ship-text">
                    <h1 style="font-size:27px; font-weight:550">Fast Shipping</h1>
                    <p class="prem-ship-qa-text">We make sure you recieve 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="quality-assurance">
                <img id="qa-img" src="../Landing Page/Images/quality-assurance.png">
                <p class="space-between-1">
                    :&emsp;<br>
                    :&emsp;<br>
                    :&emsp;<br>
                </p>
                <div id="qa-text">
                    <h1 style="font-size:27px; font-weight:550">Quality Assurance</h1>
                    <p class="prem-ship-qa-text">For every purchase you make, we will ensure there are no damages or faults and we will check and test the pitch of your instrument.</p>
                </div>    
            </div>
        
        </div>        
    </div>

    <div id="blank-3"></div>

    <div id="video">
        <video controls width="600">
            <source src="https://youtu.beYv4pnO7qc" type="video">
        </video>
    </div>

    <div id="blank-4"></div>

        <div id="trombone-types">

            <div class="instrument-boxes">
                <div class="trombone-header-text-div">
                    <div class="trombone-headers">
                        <p class="trombone-header-text">TENOR TROMBONE</p>
                    </div>
                </div>               
                <p class="price">$600</p>
                Lorem ipsum.
                <br><br>
                Lorem ipsum.
                <br><br>
                Lorem ipsum dolor.
                <br><br>
                Lorem ipsum.
                </p>
                <br>
                <div>
                    <button class="select" type="submit">
                        SELECT
                    </button>
                </div>
                <br><br>
            </div> 

            <div style="height: 20px;"></div>
            
            <div class="instrument-boxes">
                
                <div class="trombone-header-text-div">
                    <div class="trombone-headers">
                        <p class="trombone-header-text">BASS TROMBONE</p>
                    </div>
                </div>
                <p class="price">$600</p>
                <br><br>
                Lorem ipsum.
                <br><br>
                Lorem ipsum.
                <br><br>
                Lorem ipsum dolor.
                <br><br>
                Lorem ipsum.
                </p>
                <br>
                <div>
                    <button class="select" type="submit">
                        SELECT
                    </button>
                </div>
                <br><br>
            </div>
            
            <div style="height: 20px;"></div>
        
            <div class="instrument-boxes">
            
                <div class="trombone-header-text-div">
                    <div class="trombone-headers">
                        <p class="trombone-header-text">VALVE TROMBONE</p>
                    </div>
                </div>
                <p class="price">$600</p>
                <br><br>
                Lorem ipsum.
                <br><br>
                Lorem ipsum.
                <br><br>
                Lorem ipsum dolor.
                <br><br>
                Lorem ipsum.
                </p>
                <br>
                <div>
                    <button class="select" type="submit">
                        SELECT
                    </button>
                </div>
                <br><br>
            </div>     
        
        </div>    
   <!--FOOTER--> 
    <footer>
        <div id="footer-text">
            <p>Privacy&emsp;Terms&emsp;Contact<br>
            Copyright 2016, Original Trombones</p>
        </div>    
    </footer>


</body>
</html>
              
            
!

CSS

              
                body {
    background-color: #eeeeee;
    font-family: 'lato', sans-serif;
}



#header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position:fixed;
    background-color:#eeeeee;
    width: 100%;
    top: 0px;
    right: 0px;
    left: 0px;
    z-index: 1;
}

.nav-link {
    padding: 3px;
    margin: 3px;
    color: black;
    text-decoration: none;
}

.nav-link:visited {
    padding: 3px;
    margin: 3px;
    color: black;
    text-decoration: none;
}

/*End of Header */

#blank-1 {
    height: 50px;
}

/* End of Blank*/

#trombone {
    width: 275px;
}

#nav-bar {
    padding: 10px;
    margin: 10px;
}


#div-1 {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#email{
    width: 250px;
    height: 20px;
    
}

#submit {
    width: 175px;
    height: 30px;

}

/*blank*/

#blank-2 {
    height: 125px;
}

/*end of blank*/

#prem-ship-qa-parent {
    display:flex;
    flex-direction: column;
    align-items: center;
    
}

    #prem-ship-qa-children {
        display:flex;
        flex-direction:column;
        align-items:flex-start;
    }
        .prem-ship-qa-text{
            overflow-wrap: normal; 
            line-height: 15px; font-weight:400
        }
        
        #premium-materials {
            display: flex;
            flex-direction: row;
            justify-content: center;
        }

            .space-between-1 {
                width: 75px;
                color:transparent;
                
            }

            #prem-img {
                max-width: 70px;
                max-height: 70px;
                height: auto;
                width: auto;
                border-width: 1px;
                border-color: transparent;
                border-style: solid


            }

            #prem-text {
                line-height: 1px;
            }

        #fast-shipping {
            display: flex;
            flex-direction: row;
            justify-content: center;
        }

            #ship-img {
                max-width: 70px;
                max-height: 70px;
                height: auto;
                width: auto;
                border-width: 1px;
                border-color: transparent;
                border-style: solid;
            }

            #ship-text {
                line-height: 1px;
            }   

        #quality-assurance {
            display: flex;
            flex-direction: row;
            justify-content: center;
        }

            #qa-img {
                max-width: 70px;
                max-height: 70px;
                height: auto;
                width: auto;
                border-width: 1px;
                border-color: transparent;
                border-style: solid;
            } 

            #qa-text {
                line-height: 1px;
            }

/* End of text boxes */

#blank-3 {
    height: 75px;
}

/* end of blank */

#video {
    display: flex;
    flex-direction: row;
    justify-content: center;

}

/* End of video */

#blank-4 {
    height: 75px;
}

/* end of blank */

/* visit here https://forum.freecodecamp.org/t/media-not-switching-flex-orientation/485096 */

#trombone-types  {
    display: flex;
    flex-direction: row;
    justify-content: center;
}


@media (max-width:780px) {
    #trombone-types {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}


.trombone-header-text-div {
    position: relative;
    bottom: 20px;
}

.trombone-headers {
    background-color: #dddddd;
    width: 308px;
    height: 50px;
    position: relative;
    right: 4px;
    margin-top: auto;
}

.trombone-header-text {
    position: relative;
    top: 15px;
    font-weight: bold;

}

.instrument-boxes {
    border-color: black;
    border-width: 1px;
    border-style: solid;
    text-align: center;
    width: 300px;
    padding: 4px;
    margin: 10px;
    min-width:250px;
}


.select {
    position: relative;
    margin: auto;
    padding: 0px;
    width: 100px;
    height: 40px;
    background-color: #f1c40f;
    border: 0;
}

.price {
    font-weight:400;
    font-size: 30px;
    Padding:0px;
}

/* FOOTER*/

#footer-text {
    display: flex;
    flex-direction: column;
    align-items:flex-end;
    position:relative;
    background-color: #dddddd;
    text-align: right;
    line-height: 30px;
}

              
            
!

JS

              
                
              
            
!
999px

Console