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

              
                <header id="header">

  <img src="https://api.freelogodesign.org/files/b5c0b3406abb41e68e34b06c69c16f30/thumb/logo_200x200.png?v=0" id="header-img">
  
 <nav id="nav-bar">
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <div id="nav">
   <p class="nav-pos"><a href="#Features" class="nav-link">Features</a</p>
   <p class="nav-pos"> <a href="#video" class="nav-link">How it works</a></p>
   <p class="nav-pos"><a href="#All-pricing" class="nav-link">Pricing</a></p>
  </div>
 </nav>
    
</header>

<body>
  <H2 id="email-title" > Worldclass, Italian-made masterpieces</H2>
 <div id="sign-up">
  <form action="https://www.freecodecamp.com/email-submit" id="form">
    <input id="email" type="email" name="email" placeholder="Enter your email address" required><br>
    <input id="submit" type="submit" value="let's get started!">
  </form><br>
 </div>
  
  <div id="list-features">
    <h2 id="Features">Premium Materials</h2>
      <p id="feature-one"> Maple top and mahogany body, set-in mahogany neck with SlimTaper C profile with a Indian laurel fingerboard.</p>
    <h2>Fast Shipping</h2>
    <p id="feature-two"> We make sure you receive your guitar as soon as we have finished making it. We also provide free returns if you are not satisfied.</p>
    <h2>Quality Assurance</h2>
    <p id="feature-three">For every purchase you make, we will ensure there are no damages or faults and we will check and test the tune of your instrument.</p>
  </div>
  
  <div id="video-link">
    <iframe width="420" height="315" id="video"
src="https://www.youtube.com/embed/watch?v=goxMmls1TQg">
</iframe>
  </div>
  
  <div id="All-pricing">
   <div id="cheap">
    <h3 id="guitar-cheap">Epiphone Les Paul Special-I</h3>
     <h4 id="cheap-price"> $179.00</h4>
     <p id="cheap-lorem">Basswood body</p>
      <p id="cheap-lorem">Bolt-on mahogany neck</p>
      <p id="cheap-lorem">Epiphone 650R neck humbucker</p>
     <input id="submit2" type="submit" value="select">
   </div>
   <div id="med-price">
    <h3 id="guitar-med">Epiphone Les Paul Studio</h3>
     <h4 id="price"> $549.00</h4>
     <p id="med-lorem">Mahogany body</p>
      <p id="med-lorem">1960s Mahogany neck</p>
      <p id="med-lorem">Indian laurel fingerboard</p>
     <input id="submit2" type="submit" value="select">
  </div>
    <div id="rich">
      <h3 id="guitar-exp">Vintage Epiphone 1959 E422T <h3>
        <h4 id="rich-price">$1299.99</h4>
        <p id="exp-lorem">Naturally resonant hollow body</p>
        <p id="exp-lorem">Rosewood bridge and trapeze tailpiece</p>
        <p id="exp-lorem">Soft V mahogany neck with maple center strip</p>
       <input id="submit2" type="submit" value="select">
     </div>
  </div>
  
 
</body>
  
              
            
!

CSS

              
                #header {
  display: flex;
  background-color: rgb(168, 163, 163);
  position: sticky;
  top: 0;
}
body {
  width:100vw;
}
.nav-pos {
  display: inline;
  margin-left: 80px;
  position: relative;
  left: 1800px;
  top: 130px;
}
#email-title {
  text-align: center;
}
#sign-up {
  text-align: center;
  margin-top: 16px;
}
#submit {
  margin-top: 10px;
}
#list-features {
  margin-left: 400px;
  margin-bottom: 50px;
}
#feature-one {
  margin-bottom: 50px;
}
#feature-two {
  margin-bottom: 50px;
}
#video-link {
  margin-left: 400px;
  margin-bottom: 80px;
}
#All-pricing {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
#guitar-cheap {
  text-align: center;
}
#cheap {
  width: 300px;
  height: 200px;
  border: 1px solid black;
  padding: 5px;
  margin: 10px;
  text-align: center;
}
#submit2 {
  height: 30px;
  width: 150px;
  background-color: yellow;
}
#med-price {
  width: 300px;
  height: 200px;
  border: 1px solid black;
  padding: 5px;
  margin: 10px;
  text-align: center;
}
#rich {
   width: 300px;
  height: 200px;
  border: 1px solid black;
  padding: 5px;
  margin: 10px;
  text-align: center;
}
#guitar-cheap {
  background: lightgrey;
}
#guitar-med {
  background: lightgrey;
}
#guitar-exp {
  background: lightgrey;
}

@media (max-width: 1000px) {
  .nav-pos {
  display: inline;
  margin-left: 80px;
  position: relative;
  left: 600px;
  top: 130px;
  }
}
  
              
            
!

JS

              
                
              
            
!
999px

Console