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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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> -->
<link href="https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz&display=swap" rel="stylesheet">
<body>
<header id="header">
    <div id="navigation-container">
      <nav id="nav-bar">
        <a href="#"><img id="header-img" src="https://dummyimage.com/175x80/73ba87/3a3a3a&text=+COFFEE+LOGO"></a>
        <a class="nav-link" href="#about">About</a>
        <a class="nav-link" href="#benefits">Video</a>
        <a class="nav-link" href="#pricing">Purchase</a>
      </nav>
    </div>
</header>
  
  <div class="header">
    <h1>Coffee for Everyone</h1>
    <p>Information about awesome product...</p>
  </div>
<div class="row">
<section id="about" class="column">
  <h2>About the product...</h2>
  <p>Some things about coffee and how great it is.</p>
</section>
  </div>
<div class="row">
<section id="benefits" class="column">
  <h2>Video of product...</h2>
  
  <iframe id="video" width="500" height="315" src="https://www.youtube-nocookie.com/embed/65QnBqZxBJ0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</section>

<section id="signup" class="column">
  <h3>Email sign-up...</h3>
    <form id="form" action="https://www.freecodecamp.com/email-submit">
    <input type="email" name="email" id="email" placeholder="Enter your email address" required />
      <br>
    <input id="submit" type="submit" value="Get Started" class="button" />
  </form>
</section>
</div>
  
<div class="row">
<section id="pricing">
<div class="cta">
  <h4>Buy it now!</h4>
  <button class="button">Click here...</button>
  </div>
</section>
  </div>
  <footer id="footer">
    <small>
      Made by <a href="https://zacharyparsons.co.uk">Zachary</a> as a <a href="https://learn.freecodecamp.org">FreeCodeCamp</a> project
    </small>
  </footer>
</body>
              
            
!

CSS

              
                body {
  margin: 0;
  padding: 0;
  font-family: 'Yanone Kaffeesatz', sans-serif;
  font-size: 1.5em;
  color: #2a3e30;
  background-color: #c3d7c9;
}

 /* The navbar container */
#header {
  position: fixed;
}

#nav-bar {
  width: 100%;
  position: fixed;
  padding-left: 125px;
  overflow: hidden;
  background: linear-gradient(90deg, rgb(105, 156, 120) 0%, rgb(125, 195, 131) 55%, rgb(255, 241, 188) 85%);
}

/* Navbar links */
.nav-link {
  float: left;
  display: block;
  color: #d2e1d6;
  text-align: center;
  padding: 28px 16px;
  text-decoration: none;
}

/* Links - change color on hover */
.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.5);
  color: #3a3a3a;
} 

#header img{
  float: left;
  vertical-align: middle;
}

.header {
  background-color: #F1F1F1;
  background-image: url(https://images.unsplash.com/photo-1510591509098-f4fdc6d0ff04?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80);
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 350px 20px;
  color: #d2e1d6;
}

.row {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-around;
	align-items: stretch;
	align-content: stretch;
}

@media (max-width: 400px) {
  .row {
    display: block;
  }
}

section {
  padding-top: 75px;
}

.cta {
  text-align: center;
  padding-bottom: 50px;
}

.button {
  cursor: pointer;
  width: 225px;
  padding: 10px;
  margin: 15px auto;
  border: 1px solid rgba(105,156,120,1);
  border-radius: 10px;
  background: rgb(255,241,188);
  background: linear-gradient(130deg, rgba(255,241,188,1) 0%, rgba(125,195,131,1) 65%, rgba(105,156,120,1) 90%);
}

.button:hover {
  background-color: rgba(255, 255, 255, 0.75);
  -webkit-box-shadow: 0px 5px 40px -10px rgba(0,0,0,0.57);
  -moz-box-shadow: 0px 5px 40px -10px rgba(0,0,0,0.57);
  transition: all 0.3s ease 0s;
}

input {
  width: 225px;
  border: 1px solid rgba(105,156,120,1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.75);
}

#footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: seagreen;
  color: white;
  text-align: center;
}

#footer a {
  color: darkseagreen;
}

#footer a:hover {
  text-decoration: underline;
}
              
            
!

JS

              
                
              
            
!
999px

Console