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

              
                <!DOCTYPE html>
<html>
  <head>
    <nav id="nav-bar" class=n"av-bar fixed-top navbar-expand navbar-light bg-light">
    <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Product Landing Page</title>
    <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
  </head>

<header id="header">
  <div class="header">
    <h1>Google Store</h1>
  </div>
  <style>
    body {
      margin:0;
      padding:0;
      background-color: #F4B400;
    }
    
    h1 {
      color: white;
      font-family: Open Sans;
      font-style: bold;
      font-size: 18px;
      padding: 12px;
      margin-top: 2px;
      
    }
    
    .nav-link {
      color: white;
      font-family: Open Sans;
      padding: 12px;
      margin-top: 2px;
    }
    
    li {
      color: white;
      
    }
    
    h2 {
      color: #DB4437;
      font-family: Open Sans;
      font-style: bold;
    }
   
    h3 {
     
      color: white;
      font-family: Open Sans;
      font-weight: regular;
      font-size: 14;
    }
    
    .subscribe {
      @import url('https://fonts.googleapis.com/css?family=Pacifico&display=swap');
    }
     
  </style>
  
 
  <div class="topnav">
  <a class="active" href="#features">Features</a>
  <a href="tech-specs">Tech Specs</a>
     <a href="tech-specs">Buy</a>
     <a href="tech-specs">Contact Us</a>
</div>
 
</header>
<br>
<br>

<center><h2 class="headings">The phone that gets things done.</h2></center>
<div class="container" ></div>

<center><iframe width="1200" height="600" src="https://www.youtube.com/embed/0qaD_jX0ctw" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" :allowfullscreen></iframe></center>
<br>
<br>
<center><h1 class=heading>The Google Pixel 3a.</h1></center>
<br>
<br>
<img class="center-fit" id="phoneimage" src="https://designketchup.com/wp-content/uploads/2018/11/pixel_3_xl-1024x768.jpg" width="1800 alt="googlepixel3apic"/>

<br>
<br>

<center><div>
<h2>The camera that does the work for you.</h2>
  
  <h3> Night Sight</h3>
  <p>Lose the flash, get the shot.  Night Sight gives you rich detail and colour, even in the dark.</p>
    <h3>Depth eidtor</h3>
      <p>Focus on what matters by adjusting the depth of field.</p>
      <h3>Colour pop</h3>
      <p>Make the colour pop, while softening the background in black and white.</p>
      <br>
      <br>
  <h2>The power to do more.<h2>
    
        <h3>All-day battery.</h3>
        <p>Lasts up to 30 hours.  Pixel's Adaptive Battery learns your favourite apps and reduces power to those you rarely use.</p>
        <h3>Fast charging.</h3>
        <p>Enjoy up to 7 hours of use on a 15-minute charge with the 18 W adaptor included.</p>
        <br>
        <br>
    </div><center>
    
   <img id=googlepixel3aimg" src="https://www.unboxingtreatment.com/wp-content/uploads/2019/05/Google-Pixel-3a.jpg" width="1800" alt="googlepixel3aimg" />
        <br>
        <br>
        
     <h2>Peace of mind built in.</h2>
    
  <h3>Secured with Titan M.</h3>
     <p>From passwords to the OS, Google's custom-made Titan M Security chip helps protect your most sensitive data.</p>
     <h3>3 years of update.</h3>
     <p>Automatic security and OS updates will make sure that your phone is protected against the latest threats.</p>
     
    <div id="email-submit-container">
                <div id="email-container">
                  <label for="email" id="email-label"><h3>If you want to to learn more enter        your email for more upcoming events and products!</h3><input name="email" id="email" type="email" placeholder="Enter your email address..." required/>
              </div>
              <br>
            
            

              <div id="submit-container">
                <input id="submit" type="submit"></input>
              </div>
            </div>
        </div>
        </form>
        </section>
<br>
<br>
<br>
         
              
            
!

CSS

              
                :root {
  scroll-behaviour:
    smooth;
}

.topnav {
  position: absolute;
  top:0;
  right:0;
}

.topnav {
  background-color: ;
  overflow: hidden;
}

.topnav a {
  float: left;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
}

.topnav a:hover {
  background-color: #4285F4;
  color: White;
}

.topnav a.active {
  background-color: #4285F4;
  color: white;
}

.iframe {
  align: center;
}

.headings {
  font-size: 60px;
  
}

h2 {
  font-size: 26px;
}

p {
  color:  #585757;
  font-size: 12px
  font-family: Open Sans;
  font-weight: bold;
}

.heading {
  color: #DB4437;
  font-size: 30px;
}

#email-submit-container {
  margin-top: 5rem;
  border-top: 1px dashed #585757;

}

#email-container {
  height: 7rem;
}

#email {
  text-align: center;
  margin-top: 0.5rem;
  height: 2.5rem;
  width: 25rem;
  border-radius: 5px;
  font-weight: bold;
  font-family: Open Sans;
  color: #585757;
  font-size:0.75rem;
}
#email-container {
  padding: .5rem;
}
#submit-container {
  margin: 0;
  height: 2.2rem;
}

#submit {
  box-sizing: content-box;
  height: 2rem;
  width: 10rem;
  border-radius: 5px;
  font-weight: bold;
  font-family: Open Sans;
  color: white;
  background-color: #DB4437;
  border: 2px; #585757;;
  cursor: pointer;
}

 #email {
    width: 25%;
  }


              
            
!

JS

              
                form {
  text-align: center;
  margin-top: -20px;
  margin-bottom: 40px;
  padding: 10px;
}

.section {
  margin-top: 70px;
  margin-bottom: 70px;
  font-family: Open Sands;
  font-weight: bold;
  color: #585757;
}


#submit {
  background: red;
  font-size: 16px;
  color: #585757;
}



.subscribe {
  font-family: Open Sans;
  font-size: 30px;
  color: #DB4437;
}
              
            
!
999px

Console