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

              
                <head>
  <link href="https://fonts.googleapis.com/css?family=Poppins" rel="stylesheet">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<main>
<header id="header">
  <nav id="nav-bar">
    <img id="header-img" src="https://www.freeiconspng.com/uploads/-expander-fitness-trainer-fitness-room-gym-gymnastic-health-512-17.png" alt="logo">
    <ul id="nav-ul">
      <li><a href="#" class="nav-link">Home</a></li>
      <li><a href="#about" class="nav-link">About</a></li>
      <li><a href="#pricing-title" class="nav-link">Pricing</a></li>
      <li><a href="#contact" class="nav-link">Contact</a></li>
    </ul>
  </nav>
</header>
<main id="main">
  <h1 id="about" class="section-headers">About DCStrength</h1>
  <div class="section-container">
    <div id="about-grid-container">
      <div id="about-text">
        <h2 id="about-text-heading">What is DC Strength?</h2><br>
        <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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p><br>
        <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. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
      </div>
      <div id="about-video">
        <h2 id="about-video-heading">Visual Presentation</h2><br>
        <div id="vid-container"><iframe id="actual-video" frameborder="0" scrolling="no" type="text/html" src="https://www.youtube.com/embed/szK7S8KmsWM?autoplay=0&fs=0&iv_load_policy=3&showinfo=0&rel=0&cc_load_policy=0&start=0&end=0&origin=https://youtubeembedcode.com"></iframe></div>
      </div>
    </div>
  </div>
  <h1 id="pricing-title" class="section-headers">Pricing</h1>
  <div class="section-container">
    <div id="pricing">
      <div class="pricing-boxes">
        <h3 class="pricing-heading">Noob:<span class="actual-prices">$49/mo</span></h3><hr>
        <ul class="plan-benefits">
          <li class="plan-benefits-single">In person classes once per month</li>
          <li class="plan-benefits-single">Diet Program Advice</li>
          <li class="plan-benefits-single">72 hour turnaround on consultations</li>
        </ul>
        <img class="price-logos" src="https://i.pinimg.com/originals/8b/83/71/8b8371a4e47d0855fdb58e90924a44d7.png" alt="logo">
      </div>
      <div class="pricing-boxes">
        <h3 class="pricing-heading">Amateur:<span class="actual-prices">$99/mo</span></h3><hr>
        <ul class="plan-benefits">
          <li class="plan-benefits-single">In person classes once per week</li>
          <li class="plan-benefits-single">Basic Diet Plan</li>
          <li class="plan-benefits-single">24 hour turnaround on consultations</li>
        </ul>
        <img class="price-logos" src="https://i.pinimg.com/originals/8b/83/71/8b8371a4e47d0855fdb58e90924a44d7.png" alt="logo">
      </div>
      <div class="pricing-boxes">
        <h3 class="pricing-heading">Pro:<span class="actual-prices">$199/mo</span></h3><hr>
        <ul class="plan-benefits">
          <li class="plan-benefits-single">In person classes three times per week</li>
          <li class="plan-benefits-single">Custom Built Diet Plan</li>
          <li class="plan-benefits-single">1 hour turnaround on consultations</li>
        </ul>
        <img class="price-logos" src="https://i.pinimg.com/originals/8b/83/71/8b8371a4e47d0855fdb58e90924a44d7.png" alt="logo">
      </div>
    </div>
  </div>
  <h1 id="get-started" class="section-headers">Get Started!</h1>
  <div class="section-container">
    <div id="contact">
      <div class="contact-box">
        <div class="form-entry">
          <form>
            <div class="form-input">
              <input id="name" name="name" type="text" placeholder="Enter First and Last Name">
            </div>
          </div>
          <div class="form-entry">
            <div class="form-input">
              <input id="email" name="email" type="email" placeholder="Enter Email Address">
            </div>
            <div class="form-button">
              <button id="form-button" type="submit"><a href="https://www.freecodecamp.com/email-submit">Submit</a></button>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
</main>
  

  
      
  
              
            
!

CSS

              
                * {
  border: 0;
  box-sizing: border-box;
  margin: 0;
  font-family: 'Poppins', serif;
}

body {
  background-image: url("http://www.nxtlvlsport.com/wp-content/uploads/2015/04/Gym-Background1.png");
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding-top: 100px;
  color: #ffffee;
}

#header {
  overflow: hidden;
}

#nav-bar {
  float: left;
  width: 100%;
  overflow: hidden;
  background-color: LightGray;
  position: fixed;
  top: 0;
  margin-bottom: 300px;
  z-index: 15;
}

#header-img {
  width: 70px;
  height: auto;
  display: inline-block;
  float: left;
}

#nav-ul {
  list-style: none;
  display: inline-block;
  line-height: 70px;
  float: right;
}

#nav-bar li {
  display: inline-block;
  margin-right: 35px;
  text-transform: uppercase;
}

#nav-bar a {
  text-decoration: none;
  color: #000000;
}

.section-headers {
  color: #ffffee;
  text-align: center;
  font-size: 40px;
  margin-bottom: 30px;
}

#about-grid-container {
  width: 80%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  grid-gap: 5%;
  align-content: center;
  margin: auto;
}

#about-text {
  font-size: 16px;
  text-align: justify;
  padding: 40px;
  background-color: rgb(112, 178, 248, 0.30);
  border-radius: 5px;
  transition: all .2s ease-in-out;
}

#about-text:hover {
  transform: scale(1.05);
}

#about-text-heading {
  text-align: center;
}

#about-video {
  font-size: 16px;
  padding: 40px;
  text-align: justify;
  background-color: rgb(112, 178, 248, 0.30);
  border-radius: 5px;
  transition: all .2s ease-in-out;
}

#about-video:hover {
  transform: scale(1.05);
}

#about-video-heading {
  text-align: center;
}

.section-container {
  margin-bottom: 50px;

}

#actual-video {
  text-align: center;
  margin: 0 auto;
  display: block;
  width: 80%;
  height: 310px;
}

#pricing {
  width: 80%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr;
  grid-gap: 5%;
  align-content: center;
  margin: auto;
}

.pricing-heading {
  text-align: center;
  font-size: 26px;
}

.pricing-boxes {
  font-size: 16px;
  text-align: justify;
  padding: 40px;
  background-color: rgb(112, 178, 248, 0.30);
  border-radius: 5px;
  display: table-cell;
  vertical-align: middle;
  transition: all .2s ease-in-out;
}

.pricing-boxes:hover {
  transform: scale(1.05);
}

.actual-prices {
  margin-left: 30px;
}

.plan-benefits {
  margin-top: 20px;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

div > img.price-logos {
  display: block;
  width: 30%;
  margin: auto;
}

.contact-box {
  display: flex;
  flex-direction: column;
  background-color:  rgb(112, 178, 248, 0.30);
  padding: 40px 15px;
  width: 45%;
  margin: auto;
  text-align: center;
  transition: all .2s ease-in-out;
}

.contact-box:hover {
  transform: scale(1.05);
}

.form-input {
  display: block;
  margin-bottom: 30px;
  width: 100%;
  height: 30px;
}

.form-input > input {
  width: 50%;
  height: 40px;
  border: 2px solid black;
}

::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  font-size: 20px;
  text-align: center;
}
::-moz-placeholder { /* Firefox 19+ */
  font-size: 20px;
  text-align: center;
}
:-ms-input-placeholder { /* IE 10+ */
  font-size: 20px;
  text-align: center;
}
:-moz-placeholder { /* Firefox 18- */
  font-size: 20px;
  text-align: center;
}

#form-button {
  width: 25%;
  height: 40px;
  border: 2px solid black;
  color: black;
  font-size: 1em;
}

#form-button a {
  text-decoration: none;
  color: black;
}

@media screen and (max-width: 800px){
  #about-grid-container {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 5%;
    align-content: center;
    margin: auto;
  }
  #nav-bar {
    float: left;
    width: 100%;
    overflow: hidden;
    background-color: LightGray;
    position: fixed;
    top: 0;
    margin-bottom: 300px;
    font-size: 10px;
    border-bottom: 1px solid black;
  }

  #nav-bar a {
     color: black;
  }
  body {
    font-size: 14px;
  }
  body:before {
    content: "";
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    background: url("http://www.nxtlvlsport.com/wp-content/uploads/2015/04/Gym-Background1.png") no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}
  #pricing {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    grid-gap: 50px;
    align-content: center;
    margin: auto;
  }
  .form-input > input {
    width: 100%;
    height: 40px;
    border: 2px solid black;
  }

  ::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    font-size: 10px;
    text-align: center;
  }
  ::-moz-placeholder { /* Firefox 19+ */
    font-size: 10px;
    text-align: center;
  }
  :-ms-input-placeholder { /* IE 10+ */
    font-size: 10px;
    text-align: center;
  }
  :-moz-placeholder { /* Firefox 18- */
    font-size: 10px;
    text-align: center;
  }

  #form-button {
    width: 55%;
    height: 40px;
    border: 2px solid black;
    color: black;
    font-size: 1em;
  }
  #get-started {
    margin-top: 150px;
  }
   body {
     background-color: lightGray;
     padding-top: 100px;
     color: #ffffee;
   }
   #nav-bar li {
     display: inline-block;
     margin-right: 10px;
     text-transform: uppercase;
   }
   #actual-video {
     text-align: center;
     margin: 0 auto;
     display: block;
     width: 100%;
     height: auto;
   }
   .contact-box {
     background-color: LightGray;
     width: 100%;
   }
   .pricing-boxes {
     background-color: LightGray;
     color: black;
     text-align: left;
   }
  hr {
    border: 1px solid black;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console