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>

<div id=header>
    <img src="http://www.free-icons-download.net/images/lightning-bolt-logo-icon-76715.png" alt="Lightning" id="header-img">
  <h1>Lightning-Fast Muay Thai Gloves</h1>
<nav id="nav-bar">
<a href="#glove" class="nav-link">Why this glove?</a>
<a href="#features" class="nav-link">Features</a>
<a href="#pricing" class="nav-link">Pricing</a>
  </nav>
</div>

  <div id="glove">
  <div id="leather" class="glove-feature">
    <img src="https://png2.kisspng.com/20180326/srw/kisspng-artificial-leather-logo-material-hide-leather-5ab9787d41cba6.4988493815221044452695.png" alt="leather" id="leather-img">
  <div class="description">
    <h2>Authentic Leather</h2>
  <p>Leather that won't crack and endure even the harshest blows. Straight from Phuket province.</p> 
    </div>
</div>
    <div id="science" class="glove-feature">
<img src="https://cdn3.iconfinder.com/data/icons/pixomania/128/science-512.png" alt="science" id="science-img"> 
      <div class="description">
  <h2>Aerodynamically Tested</h2>
  <p>Gloves that have been tested time and time again to ensure the fastest strike. Testers may have been injured in the process.</p>
    </div>
    </div>
    <div id="sewing" class="glove-feature">
  <img src="https://cdn2.iconfinder.com/data/icons/eldorado-appliance/40/sewing_machine-512.png" alt="sewing" id="sewing-img">
      <div class="description">
  <h2>Hand-made</h2> 
  <p>Each and every glove is made in our Bangkok factory from scratch. That's the only way to make sure we deliver what we promise.</p> 
      </div>
    </div>
  </div>

<div id="features"> 
  <h2>In-Depth Look</h2>
  <iframe id="video" width="600" height="400" src="https://www.youtube.com/embed/xo2xuNYKO0I" frameborder="0" allowfullscreen></iframe>
</div>

<div id="pricing">
  <h2>Pricing</h2>
  <h3>$49.99</h3>
  <p>And if it doesn't last you 36 months...we'll give you a full refund.</p>
</div>

<div id="close">
  <form id="form" action="https://www.freecodecamp.com/email-submit">
    Take your bouts to the next level: <br>
    <input id="email" type="email" placeholder="Email" name="email"><br>
    <input id="submit" type="submit">
  </form>
</div>
              
            
!

CSS

              
                * {
  font-family: Arial;
}

@media (max-width: 768px) {
  * {
  font-family: Tahoma;}
}

#header {
  position: fixed;
  width: 100%;
  display: flex;
  top: 0;
  background-color: white;
  opacity: 0.8;
}
#header img {
  height: 75px;
  width: 75px;
  margin-top: -10px;
}
#header h1 {
  font-size: 23px;
  margin-left: -20px;
}
#header nav {
  margin-left: 730px;
  margin-top: 15px;
}
#header a {
  color: black;
  text-decoration: none;
}
.nav-link {
  margin-right: 10px;
}

#glove {
  margin-top: 100px;
  display: flex;
  flex-flow: row;
}
.glove-feature {
  display: flex;
  flex-flow: row;
  justify-content: center;
}
.glove-feature img {
  height: 100px;
  width; 100px;
}
.description {
  padding: 5px;
  margin-top: -10px;
  margin-bottom: 15px;
  width: 60%
}

#features {
  margin-top: 50px;
}
#features h2 {
  text-align: center;
}
#features iframe{
  display: block;
  margin: auto;
}

#pricing {
  margin-top: 100px;
  text-align: center;
  border: 1px dashed black;
  width: 50%;
  margin-left: auto;
  margin-right: auto;
  display: block;
}
#pricing h3 {
  font-weight: normal;
}
#pricing p {
  font-style: italic;
}

#close {
  margin-top: 50px;
  text-align: center;
  font-size: 20px;
}
input[type=submit] {
  background-color: #DBBC58;
  border-radius: 6px;
}
              
            
!

JS

              
                
              
            
!
999px

Console