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

              
                <header id="header">
    <img id="header-img" alt="company logo"
    src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQTVPXoHxFQiUeR5HZprzVpp-NDISSy9PRORg&usqp=CAU">
    <nav id="nav-bar">
        <a class="nav-link" href="#features">Features</a>
        <a class="nav-link" href="#demo">Demo</a>
        <a class="nav-link" href="#prices">Pricing</a>
    </nav>
</header>
<main>
    <section>
    <h2 class="bulletpoint">Let Space.io help you in your coding journey</h2>
    <form id="form" action="https://www.freecodecamp.com/email-submit">
        <input
          name="email"
          id="email"
          type="email"
          placeholder="Enter your email address"
          required
        />
        <input id="submit" type="submit" value="Enroll" class="btn" />
      </form>
    </section>
    <section id="features">
        <div class="wrapper">
            <h2 class="bulletpoint">Premium Courses</h2>
            <p>
              Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
               tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, 
               quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
            </p>
          </div>
          <div class="wrapper">
            <h2 class="bulletpoint">Qualified Instructors</h2>
            <p>
                Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque
                laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi 
                architecto beatae vitae dicta sunt explicabo.
            </p>
          </div>
          <div class="wrapper">
            <h2 class="bulletpoint">Large Community</h2>
            <p>
                Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, 
                nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea 
                voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo
                 voluptas nulla pariatu.
            </p>
          </div>
          <div class="wrapper">
            <h2 class="bulletpoint">Money Back Guarantee</h2>
            <p>
                Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia 
                consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt
            </p>
          </div>
      </section>
      <section id="demo" class="wrapper">
        <h2 class="bulletpoint">Free Demo Video</h2>
        <div id="video-div">
        <iframe id="video"
        height="315"
        width="400"
        src="https://www.youtube.com/embed/xV7S8BhIeBo" 
        title="YouTube video player" 
        frameborder="0" 
        allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" 
        allowfullscreen></iframe></div>
      </section>
      <section id="prices" class="wrapper flex-wrapper">
        <h2 class="bulletpoint">Prices</h2>
        <div id="prices-container">
        <div class="price-group">
            <div>Basic</div>
            <h2>$10 Monthly</h2>
            <ul>
              <li>Lorem.</li>
              <li>Lorem.</li>
              <li>Lorem.</li>
              <li>Lorem.</li>
            </ul>
            <button>Select</button>
          </div>
          <div class="price-group">
            <div>Vip</div>
            <h2>$20 Monthly</h2>
            <ul>
              <li>Ipsum.</li>
              <li>Ipsum.</li>
              <li>Dolor.</li>
              <li>Ipsum.</li>
            </ul>
            <button>Select</button>
          </div>
          <div class="price-group">
            <div>Exclusive</div>
            <h2>$50 Monthly</h2>
            <ul>
              <li>Dolor.</li>
              <li>Great.</li>
              <li>Lorem.</li>
              <li>Ipsum.</li>
            </ul>
            <button>Select</button>
          </div>
        </div>
      </section>
</main>
<footer>
    <p>Contact Us</p>
    <p>Facebook</p>
    <p>Instagram</p>
</footer>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@1,300&display=swap');
body{
    margin:0px;
    padding: 0px;
    background: linear-gradient(142deg, rgb(0 0 0), rgb(20 18 83));

}

*{
    color: rgb(238, 224, 224);
}

#header{
    display: flex;
    top: 0px;
    position: fixed;
    width: 100%;
    height: 100px;
    font-family: 'Hurricane', cursive;
    background: linear-gradient(50deg, rgb(0 0 0), rgb(20 18 83));
}

main{
    margin-top: 150px;
    font-family: 'Montserrat', sans-serif;

}

#header-img{
    width: 130px;
    margin: 0px;
    text-align: center;
    padding: 0px;
}

#nav-bar{
    display: flex;
    flex-wrap: wrap;
    width: 70%;
    align-items: center;
    padding-top: 10px;
    font-size: 1.1em;
}

.nav-link{
    text-decoration: none;
    width: 100%;
    text-align: center;
    opacity: 0.8;
}

.nav-link:hover{
    color: #fff;
    opacity: 1;
}

.bulletpoint{
    text-align: center;
    margin: 30px auto;
}

.wrapper{
    width: 80%;
    margin: 15px auto;
    font-size: 1.1em;
}

#email{
    width: 60%;
    padding: 10px;
    margin: 10px 20%;
    border: 2px #2416b9 solid;
    border-radius: 3px;
    color: #070720;   
}

#submit{
    width: 30%;
    margin: 10px 35% auto 35%;
    padding: 8px;
    box-sizing: border-box;
    color:#fff;
    border: 2px #fff solid;
    border-radius: 3px;
    background-color: #ff4900;
}

#video-div{
    text-align: center;
}

.wrapper > p{
    text-align: center;
} 

#prices-container{
    display: flex;
    flex-wrap: wrap;
}

.price-group{
    width: 70%;
    align-items: center;
    text-align: center;
    padding: 1em;
    margin: 1em auto;
    border-radius: 5px;
    border: 2px #fff solid;
    box-sizing: border-box;
    background-color: rgb(10 7 108);
}

button{
    background-color: rgb(215 75 29);;
    border: 2px solid #fff;
    border-radius: 5px;
    padding: 0.5em;
    box-sizing: border-box;
    margin: auto;
}

.price-group li{
    list-style-type: disc;
}

footer{
    background-color: #000;
    margin: auto;
    text-align: center;
    padding: 10px;
    font-family: 'Montserrat', sans-serif;
    background-color:rgb(9, 7, 54);
}

#media{
    max-width: 100%;
}

@media all and (min-width: 350px){
    #video{
        color: blue;
        width: 300px;
}
}

@media all and (min-width: 550px){
    .nav-link{
        width: 30%;
    }
}

@media (min-width: 600px){
    #header-img{
        width: 170px;
    }
    .price-group{
        width: 65%;
        padding: 0.5em;
    }
    .wrapper{
        width: 60%;
    }
    footer{
        display: flex;
        justify-content: space-evenly;
        padding: 5px;
    }

    #video{
        width: 400px
    }
}

@media (min-width: 700px){
    .price-group{
        width: 30%;
        padding: 0.5em;
    }

    nav{
        width: auto;
        margin: auto -10% auto auto;
    }

    #video{
        width: 500px
    }
    .flex-wrapper{
        width: 100%;
    }

    #email{
        width: 50%;
        margin: 10px 25%;
    }
}

@media all and (min-width:800px) {

    .wrapper{
        width: 70%;
    }

    #email{
        width: 40%;
        margin: 10px 30%;
    }

}

@media (min-width:900px) {
    .wrapper{
        width: 50%;
    }
}
              
            
!

JS

              
                const projectName = 'product-landing-page';
              
            
!
999px

Console