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

              
                <div class="nav">
    <h1>Zero Gravity</h1>
 <!--we connect the label wih the toggle menu so after we make the toggle menu invisible and we click on the label, the toggle menu will still function-->
  
  <label for="toggle">&#9776</label>
  <input type="checkbox" id="toggle"/>
  
  <div class="menu">
    <a href="#">About Us</a>
    <a href="#">Contact</a>
    <a href="#">Blog</a>
    <a href="#"><span>Free Trial</span></a>
  </div>
</div>

<div class="main_content">
  <p>Bacon ipsum dolor amet short ribs tri-tip porchetta rump leberkas cupim shank turkey. Biltong hamburger jerky, ball tip sausage cupim tongue t-bone leberkas. Tri-tip porchetta jerky frankfurter shankle kevin andouille tail beef chuck swine sirloin strip steak corned beef. Meatloaf ham hock landjaeger kielbasa ribeye t-bone.</p>
    </br>
  <p>Jerky doner leberkas corned beef ham pork chop. T-bone frankfurter meatloaf beef, tail pancetta brisket spare ribs ribeye boudin jowl pork chop swine turducken venison. Pancetta cow venison tail tenderloin alcatra buffalo boudin capicola salami porchetta swine. Pork loin shankle ground round brisket burgdoggen bresaola capicola, chicken porchetta venison. Drumstick tenderloin porchetta, alcatra kielbasa rump picanha venison doner. Kevin ribeye capicola, chicken prosciutto strip steak meatball. Porchetta sausage shank, meatball andouille ham hock jowl t-bone. Spare ribs ball tip pancetta, frankfurter corned beef kielbasa shankle. Beef ribs porchetta t-bone capicola tail jowl flank rump drumstick. Bresaola filet mignon shoulder, prosciutto salami kielbasa cow chuck tail venison leberkas tenderloin.</p>
    </br>
  <p>Biltong short loin porchetta meatloaf pancetta. Kevin swine ham shankle, short ribs corned beef bresaola. Cupim pork kielbasa pork loin hamburger ribeye. Ham hamburger short loin chuck. Leberkas alcatra t-bone frankfurter kielbasa pastrami turducken. Hamburger shoulder swine capicola, brisket alcatra meatloaf rump chuck shank salami cupim kevin porchetta burgdoggen. Short ribs short loin tri-tip burgdoggen. Kevin ribeye capicola, chicken prosciutto strip steak meatball. Porchetta sausage shank, meatball andouille ham hock jowl t-bone. Spare ribs ball tip pancetta, frankfurter corned beef kielbasa shankle. Beef ribs porchetta t-bone capicola tail jowl flank rump drumstick. Bresaola filet mignon shoulder, prosciutto salami kielbasa cow chuck tail venison leberkas tenderloin.</p>
  

</div>
              
            
!

CSS

              
                html, body {
  width: 100%;
  heigth: 100%;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-family: "Helvetica", sans-serif;
}

.nav {
  border-bottom: 1px solid #00b3b3;
  text-align: right;
  height: 150xp;
  line-height: 150px;
}

.nav h1 {
  float: left;
  margin: 0 0 0 40px;
  color: #00b3b3;
  
}

.menu {
  margin: 0 30px 0 0;
}

.menu a {
  text-decoration: none;
  color: #00b3b3;
  margin: 0 10px;
  line-height: 150px;
}

span {
  color: #54D17A;
}

label {
  margin: 0 40px 0 0;
  font-size: 26px;
  line-height: 150px;
  display: none;
  width: 26px;
  float: right;
}

#toggle {
  display: none;
}

.main_content {
  clear: both;
  max-width: 80%;
  margin: auto;
  padding: 30px;
}

/*---------------------------------------------MEDIA QUERY-----------------------------------------*/

@media only screen and (max-width: 500px) {
  
  .logo h1 {
    font-size: 25px;
  }
  
/*when the scren width is smaller than 500px, the label will show and the cursor will trasform into a pointer*/
  
  label {
    display: block;
    cursor: pointer;
  }
  
  /*the menu containing the links will have the text aligned in the center, it will take the full width of the page and it will be hidden if the label is not pressed*/
  
  .menu {
    text-align: center;
    width: 100%;
    display: none;
    clear: both;
  }
  
  /*the links inside the menu will be block-displayed so they'll take the full width of the page and they'll have a bottom margin*/
  
  .menu a {
    clear: right;
    display: block;
    border-bottom: 1px solid #00b3b3;
    margin: 0;
  }
  
  #toggle:checked + .menu {
    display: block;
  }
  
  
}


              
            
!

JS

              
                
              
            
!
999px

Console