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

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

<body>
  <header id="header">
    <nav id="nav-bar">
      <ul id="links">
        <li style="float:left"><a href="#">Bootroom <img id="header-img" src="http://www.emoji.co.uk/files/google-emojis/activity-android/8299-soccer-ball.png" alt="soccer ball logo"></a></li>
        <li class="nav-link" href="#subscribe"><a href="#subscribe">Subscribe</a></li>
        <li class="nav-link" href="#gear"><a href="#gear">Gear</a></li>
        <li class="nav-link" href="#balls"><a href="#balls">Balls</a></li>
        <li class="nav-link" href="#boots"><a href="#boots">Boots</a></li>
      </ul>
    </nav>
  </header>
  <div class="container" id="about">
    <div id="summary">
      <p>Bootroom is your one stop shop for all things footy - soccer, that is. From boots to balls we have everything you need to satisfy the soccer fanatic in you.</p>
      <iframe id="video" src="https://player.vimeo.com/video/34159352" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
    </div>
  </div>
  <div id="boots">
    <h3 class="subsection">Boots</h3>
    <div class="flex-container">
      <div>
        <figure>
          <img src="http://images.51microshop.com/1565/product/20171019/Mercurial_Superfly_FG_Outdoor_Soccer_Cleats_Boots_Kids_Size_1508350364625_0.png" alt="nike vapors">
          <figcaption>Nike Mercurial Vapor Superfly V FG - $250</figcaption
        </figure>
      </div>
      <div>
        <figure>
          <img src="https://cdn3.volusion.com/goz35.avhz4/v/vspfiles/photos/SMYADBB0781-2.jpg?1467041185" alt="nike vapors">
          <figcaption>Adidas ACE 16.1 Primeknit FG - $225</figcaption>
        </figure>
      </div>
    </div>
  </div>
  <div id="balls">
    <h3 class="subsection">Balls</h3>
    <div class="flex-container">
      <div>
        <figure>
          <img src="https://images-na.ssl-images-amazon.com/images/I/71P9rymxgAL._SL1100_.jpg" alt="Nike Premier League ball">
          <figcaption>Nike Premier League '16-'17 - $100<figcaption> 
        </figure>
      </div>
      <div>
        <figure>
          <img src="https://www.imagehandler.net/?iset=0100&istyle=0000&fmt=jpg&w=300&h=300&cmp=85&c=999&img=A1007686000&iindex=0062" alt="Adidas MLS Glider ball">
          <figcaption>Adidas 2018 MLS Glider - $80</figcaption>
        </figure>
      </div>
    </div>
  </div>
  <div id="gear">
    <h3 class="subsection">Gear</h3>
    <div class="flex-container">
      <div>
        <figure>
          <img src="https://franklinsports.com/media/catalog/product/cache/1/image/9df78eab33525d08d6e5fb8d27136e95/s/t/steel-fold-n-go-soccer-goal-3ft-1_1.jpg" alt="Franklin Fold-n-Go">
          <figcaption>Franklin Fold-n-Go pop up goal - $100</figcaption
        </figure>
      </div>
      <div>
        <figure>
          <img src="https://fitness-super-market.com/wp-content/uploads/2018/07/60777477-1.jpg" alt="Teenitor agility ladder">
          <figcaption>Teenitor 12 rung agility ladder - $14<figcaption>
      </div>
    </div>
  </div>
  <div id="subscribe">
    <h3 class="subsection">Subscribe</h3>
    <div class="flex-container">
      <div id="summary">
        <form id="form" action="https://www.freecodecamp.com/email-submit" target="_blank">
          Enter your email to subscribe to our newsletter and get alerts for new deals!<br><br>
          <input id="email" type="email" placeholder="getdeals@aol.com" name="email" required>
          <input type="Submit" value="Submit" id="submit">
        </form>
      </div>
    </div>
  </div>
</body>
              
            
!

CSS

              
                body {
  font-family: Verdana, Arial;
  background-color: #dedede;
  margin: 0;
  padding: 0;
}

#header {
  top: 0;
  position: fixed;
}

#links {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #990000;
  position: fixed;
  top: 0;
  width: 100%;
}

#links li {
  float: right;
}

#links li a {
  display: block;
  color: white;
  text-align: center;
  padding: 20px 16px;
  text-decoration: none;
}

#links li a:hover {
  background-color: #b30000;
}

#header-img {
  height: 17px;
}

#about {
  height: auto;
}

#summary {
  background-color: white;
  width: 50%;
  padding: 15px 30px;
  margin: auto;
  margin-top: 150px;
  margin-bottom: 100px;
  box-shadow: 3px 6px 10px #777;
}

iframe {
  display: block;
  margin: 50px auto;
}

.subsection {
  display: block;
  padding: 10px;
  background-color: #bbb;
}

.subsection:hover {
  border-top: 2px solid #900;
  padding-top: 8px;
  background-color: #ccc;
}

.flex-container {
  display: flex;
  flex-wrap: wrap;
}

.flex-container > div {
  background-color: white;
  padding: 10px;
  margin: 20px;
}

.flex-container > div:hover {
  box-shadow: 2px 4px 5px #aaa;
}

.flex-container > div > figure > img {
  max-height: 200px;
  max-width: 200px;
}

figcaption {
  font-size: 11px;
}

#submit {
  padding: 3px;
  border: 0;
  border-radius: 2px;
  background-color: #b00;
  color: white;
}

#submit:hover {
  cursor: pointer;
  background-color: #c00;
}

@media (max-width: 1325px) {
  iframe {
    width: 85%;
  }
}


              
            
!

JS

              
                
              
            
!
999px

Console