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

              
                

    <main>
      <div id="header" >
        <nav id="nav-bar">
          <ul> 
            <li><a href="#home" class="nav-link links">Home</a></li>
            <li><a href="#about" class="nav-link links">About</a></li>
            <li><a href="#pricing" class="nav-link links">Pricing</a></li>
            <li><a href="#contact" class="nav-link links">Contact </a></li>
          </ul>
        </nav>

      </div>



      <div id="container">
        <div id="home">
          <div id="home-text">
          <h2 >The Big Bouncing Inflatable Green Ball</h2>
            <p> <em>RHPC</em> is proud to present the new and improved <strong>The Big Bouncing Inflatable Green Ball</strong></p>
          </div>
        </div>

         <div id="contact" class="black-white"> 
           <div id="contact-text">
             <p>Gimme your email!</p>

           </div>
           <form id="form" action="https://www.freecodecamp.com/email-submit">

          <input type="email" name="email" id="email" placeholder="email" required >
             </input>
           <input id="submit" class="hover-button black-white" type="submit" >


          </form></div>

      <div id="about" class="flex">

        <div id="about-text">
          <h2 id="about-header"> Everything About Us </h2>
          <p>We're just a bunch of humble gorgeous geniuses who invented the most awesome green ball ever.</p><p>With this one you can bounce and bounce and...</p>
        </div>
    <iframe width="560" height="315" src="https://www.youtube.com/embed/5fDBl1wT2Lk" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen id="video"></iframe>


      </div>
        <div id="founder" class="flex black-white">
              <img src="https://upload.wikimedia.org/wikipedia/commons/b/b8/Ryan_Higa_by_Gage_Skidmore.jpg" id="founder-img">
                   <div id="founder-text">
              <h2> Our Lord and Saviour</h2>
              <p> Inflatable green ball was founded by the one and only Ryan Higa</p><p> Handsome, smart, creative our founder has it all.</p>

                     <a href="https://www.youtube.com/channel/UCSAUGyc_xA8uYzaIVG6MESQ"  class="founder-links hover-button black-white" target="_blank"><strong>Youtube</strong></a>
                     <a href="https://twitter.com/TheRealRyanHiga?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Eauthor" class= "founder-links hover-button black-white" target="_blank"><strong>Twitter</strong></a>
            </div>

      </div>

        <div id="pricing" class="flex">
          <div class="pricing-boxes"><h3>Standard</h3>
            <p>$100000 paid on the spot</p>
            <button class="buy-button"> Buy</button>
            </div>
          <div class="pricing-boxes"><h3>
            Premium</h3><p> $2000000 paid on the spot</p>
            <button class="buy-button">Buy</button>
          </div>
          <div class="pricing-boxes">
            <h3>Extreme  Premium</h3>
            <p>Everything you own</p><p>Everyone you love</p>
            <button class="buy-button">Buy</button>
          </div>


        </div>



       </div>
      <div id="footer" >TeeHee!</div>
    </main>

              
            
!

CSS

              
                main{ 
    display:grid;
  grid-template-rows: repeat(3, auto); 
  grid-template-areas:
    "header"
    "content"
    "footer";
  text-align: center;
  grid-gap: 10px;
  font-family: arial;

nav{
    ul li{
      display: inline;
      padding: 10px 20px 10px 20px;
      font-size: 20px;
      
  };
  .nav-link{
    color: black;
  }ul li:hover{
    border-bottom: 10px solid;
  }
};


.links { 
  text-decoration: none; 
};.links:hover{
  color: grey;
};
  .black-white{
    color: white;
    background: black;
  }
.hover-button:hover {
    color: black;
    background: white;
    
  };

  .flex {
    display: flex;
  }


#header{
  grid-area:header;
  position: fixed;
  background: white;
  width: 100%;
  top: 0px;
  justify-content:center;
  #header-img{
    width: 20px;
    
  }
}


#container{
  grid-area: content;
  display: grid;
  grid-auto-rows: auto-fill;
   grid-gap: 10px;
}

#home{
 background-image: linear-gradient(90deg, yellow, green);
  height: 60vh;
  

#home-text{
  color: white;
  margin: 100px 20px 50px 20px;
  font-weight: bold;
  font-size: 30px;
}
}

#contact{
  padding: 50px;
  background:black;
  color: white;
  #contact-text{
    font-size: 30px;
  }#submit:hover{
    color: white;
    background: black;
    border: white solid;
  }input{
    width: 50%;
    height: 70px;
    border-top: 0px;
    border-right: 0px;
    border-left: 0px;
    border-bottom: 3px;
    font-size: 20px;
    text-align: center; 
    
    
  }#submit{
    background-color: white;
    color: black;
    font-size: 20px;
    padding: 20px;
    margin: 20px;
    border: none;
    width: 10vw;
    height: 70px;
 
  }
}


#about{
  padding: 50px;
  justify-content: center;
  background: gainsboro;
  margin: 20px 0px 20px 0px;
   #about-header{
    font-size: 30px;
    color: black;
     
  }
    
    
  #about-text{
    font-size: 20px;
    padding: 40px;
  }
  
  iframe{
    width: 50vw;
    height: 50vh;
    border-radius: 10px;
  }

 
}
  #founder{
    border-radius: 20px;
   padding: 5px;
    margin: auto;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    #founder-img{
      padding: 20px;
      border-radius: 50%;
      width: 200px;
      height: 200px;
    }#founder-text{
      padding: 20px;
      border-left: 2px solid grey;
      h2{
        font-size: 30px;
      }
      p{
        font-size: 20px;
        margin: 0px 0px 30px 0px;
      }
      text-align: justify;
      margin: 10px;
      .founder-links{
        padding: 10px;
        border: white 1px solid;
        margin: 10px;
        text-decoration: none;
  
      }
    }
  }
#pricing{
  padding: 50px;
  justify-content: center;
  .pricing-boxes{
    background-image: linear-gradient(180deg,
#203a43,
#2c5364
);
    margin:40px;
    padding: 50px;
    border-radius: 10px;
    color: white;
    box-shadow: 10px 10px 50px grey;
    font-size: 25px;
  }.pricing-boxes:hover{
    box-shadow: 50px 50px 60px grey;
  }.buy-button{
    padding: 20px;
    background: white;
    color: black;
    width: 100px;
    border: none; 
    font-size: 20px;
    
  }.buy-button:hover{
    background: black;
    color: white;
  }
}





#footer{
  grid-area: footer;
  background-color: black;
  color: white;
  font-size: 30px;
  padding: 20px;
}


}

@media (max-width: 900px){

 
  main{
    .flex{
      display: grid; 
      grid-column:100%;
      padding:0px;
      margin: 0px;
    }
     #home{
       #home-text{
         font-size: 25px;
         
       }
  }
    #about{
      padding: 0px;
      margin: 0px;
      iframe{
        width: 90vw;
        height: 50vh;
        margin: 0px;
      }
      
    }#contact{
      input{
        width: 75vw;
        
      }#submit{
        width: 100px;
      }
    }
    #founder{
      border-radius: 0px;
      margin: 0px; 
      #founder-img{
        margin: auto;
      }#founder-text{
        border-left: 0px;
        font-size: 15px;
      }
      
    }
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console