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

              
                

<header id="header"> 

 <nav id="nav-bar"> 
   <img id="header-img" src="https://img.pngio.com/textfontlogolinebrandgraphics-4236423-free-png-library-logo-text-png-300_300.png" alt="company name"> </img>
   <ul>
    <li><a class="nav-link" href="#Home">Home</a></li> 
     <li><a class="nav-link" href="#Features">Features</a></li>
     <li><a class="nav-link" href="#Pricing">Pricing</a></li>
    
   </ul>
  </nav>
</header>
<div id="container">
  <section id="Home"> 
    <header><h3>Subscribe to our newsletter</h3></header>
    <form id="form" action="https://www.freecodecamp.com/email-submit" >
    <input type="email" id="email" name="email"  placeholder="Enter your email"></input>
    <div><button class="btn" id="submit" type="submit">Submit</button></div>
    
</section>
</div>
 
 <div id="container2"> 
   <section id="Features">
      <article>
         <ul>
           <li>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</li>
           <li>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</li>
           <li>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</li>
        </ul>
       <iframe id="video"  src="https://www.youtube.com/embed/dQw4w9WgXcQ" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
         
     </article>
   </section>
</div>

 <div id="prices">
  
   <section id="Pricing">
     
     <div class="pricing"> 
     
       <h1>500$</h1>
    <ul> 
      <li>Lorem Ipsum</li>
      <li>Lorem Ipsum</li>
      <li>Lorem Ipsum</li>
       </ul>
       <button class="btn" type="Submit">Buy</button>
     </div> 
     
      <div class="pricing"> 
     
       <h1>600$</h1>
    <ul> 
      <li>Lorem Ipsum</li>
      <li>Lorem Ipsum</li>
      <li>Lorem Ipsum</li>
       </ul>
       <button class="btn" type="Submit">Buy</button>
     </div> 
      <div class="pricing"> 
     
       <h1>700$</h1>
    <ul> 
     <li>Lorem Ipsum</li>
      <li>Lorem Ipsum</li>
      <li>Lorem Ipsum</li>
       </ul>
       <button class="btn" type="Submit">Buy</button>
     </div> 
     
     
     </div>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP&display=swap');
html, body {
  
margin: 0;
padding: 0;
font-family: 'Poppins', sans-serif;
background-color:  #cccccc;
scroll-behavior: smooth;
}

nav {
  display: flex;
  width: 100%;
  background-color: #808080;
  position: fixed;
  height: 8vh;
  align-items: center;
  justify-content: space-between;
}

img {
  
  margin-bottom: 2vh;

  
}


nav ul {
  
  list-style-type: none;
  display: flex;
  justify-content: flex-end;
   font-size: 1.3rem;
  
}

nav ul li {
  
  padding: 1.3rem;
  display: flex;

}

nav ul a {
  
  text-decoration: none;

  padding: 1rem;
  color: #000000;
  transition: 0.3s;
}

a:hover {
  
  color: #b30000;
  
}

#Home {
  width: 50%;
  display: flex;
  text-align: center;
  margin-top: 5rem;
  font-size: 1.5rem;
  padding: 1.5rem;  
  flex-direction: column;
  border-radius: 1rem; 
}

#email {
  padding: 0.5rem;
  width: 35%;
  border-radius: 0.2rem;
  border: none;
  outline: none;
  
}

.btn {
  
  padding-left: 3rem;
  padding-right: 3rem;
  padding-top: 1rem;

  margin-top: 2rem; 
  padding-bottom: 1rem;
  background-color: #ff9f1a;
  outline: none;
  border: none;
  outline:none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: 0.3s;
}

h3 {
  
  margin-bottom: 1.7rem;
  
}

#container {
  
  display: flex;
  justify-content: center;

  
}

.btn:hover {
  
  background-color: #e68600;
  
}

#email:focus {
  
  border: 2px solid #1fff0f;
  margin-bottom: -0.125rem;
  
}

#Features {
  max-width: 60rem;
  display: flex;
  margin-top: 1rem;
  font-size: 1rem;
  padding: 1.5rem;  
  flex-direction: column;
  
 
}
  
  #container2 {
    
    display: flex;
    justify-content: center;
    
  }

iframe {
  
  display: flex;
  margin: auto;
  padding-top: 1.5rem;
}

#Features ul li {
  
   list-style-type: none;
  
}

#Pricing {
  
   width: 50%;
  display: flex;
  margin-top: 5rem;
  font-size: 1rem;
  
  padding: 1.5rem;  
  flex-direction: row;
  border-radius: 1rem; 
  text-align: center;
  
  justify-content: center;
  
}

#prices {
  
  display: flex;
  justify-content: center;
  
}

#Pricing ul li {
  
  list-style-type: none;
  margin-right: 2.2rem;
  
}

.pricing {
  
  border: 1px solid black;
  padding: 1rem;
  margin: 1.2rem;
  border-radius: 1rem;
  
}

@media screen and (max-width: 750px) {
  
  #Pricing {
    
    flex-direction: column;
    
  }
  
  #email {
    
    width: 40vw;
    
  }
  
  nav ul li {
    
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    display: flex;
    justify-content: center;
  }
  
  
  nav ul {
    display: flex;
    margin-left: -1.5rem;
    justify-content: center;
  }
  
  img {
    
        
        visibility: hidden;
        
 
  }
  
  .pricing {
    
    width: 100%;
    margin-left: -1.2rem;  
    
  }

  #video {
    
    width: 100vw;
    
    
  }
  
  #Features ul li {
    
    width: 70vw;
    
    
    
  }
  
}

#video {
 
  width: 70%;
  height: 20rem;
}
  

              
            
!

JS

              
                
              
            
!
999px

Console