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

              
                
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Cooking at Home | Home</title>
    <link href="https://unpkg.com/ionicons@4.5.10-0/dist/css/ionicons.min.css" rel="stylesheet">
    <link href="https://fonts.googleleapis.com/css2?family=Nunito&display=swap" rel="stylesheet">
    <link href="https://fonts.googleleapis.com/css2?family=Aldrich&display=swap" rel="stylesheet">
  </head>
  <body>
    <header>
      <div class="container">
        <nav>
          <div class="nav-brand">
            <a href="index.html">
              <img src="images/logo.png" alt="">              </a>
          </div>
        </nav>
      </div>
      <div class="menu-icons open">
        <i class="icon ion-md-menu"></i>
      </div>
      <ul class="nav-list">
        <div class="menu-icons close">
        <i class="icon ion-md-close"></i>
        </div>
        <li class="nav-item">
          <a href="#" class="nav-link">Home
          </a>
        </li>
        <li class="nav-item">
          <a href="#" class="nav-link">Why at Home?
          </a>
        </li>
        <li class="nav-item">
          <a href="#" class="nav-link">Some Great Recipes
          </a>
        </li>
        <li class="nav-item">
          <a href="#" class="nav-link">Recipes for Beginners
          </a>
        </li>
        <li class="nav-item">
          <a href="#" class="nav-link">About Us
          </a>
        </li>
      </ul>
     </header>
    <section class="hero">
      <div class="container">
        <div class="main-message">
        </div>
        <h3>Love in the Kitchen</h3>
        <h1>Center of Life</h1>
        <p>

Spicy jalapeno bacon ipsum dolor amet consectetur tongue beef, cupim est cillum nisi culpa spare ribs jerky adipisicing. Buffalo biltong cupidatat, ham aute fatback tempor chuck bacon short ribs laborum tenderloin. Jerky voluptate veniam cillum tempor spare ribs biltong reprehenderit chuck. Tongue jowl shankle chuck nisi commodo turkey salami. Pork qui nulla sint shank kevin. Ut quis chicken turkey labore drumstick.</p>

<p>Meatball consectetur mollit beef ribs turducken ham hock, aute jowl dolor enim ground round ullamco chuck. Tongue leberkas pork pork loin irure pig, dolore voluptate duis reprehenderit tempor porchetta. Capicola culpa bacon brisket esse id nostrud flank tongue cillum laborum fatback beef ribs strip steak. Ex shankle commodo sed elit, anim eiusmod pancetta meatball sirloin minim dolore eu in. Ad excepteur t-bone burgdoggen ut, nisi tongue dolor bresaola pork loin anim.</p>
        <div class="cta">
          <a href="#" class="btn">Join Our Community   
          </a>
        </div>
      </div>
    </section>
  </body>


  
  
  
  
  
  

              
            
!

CSS

              
                *,
*:: before,

*::after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: #da4177;
}

ul {
  list-style: none;
}

p {
  font-size: 1.6rem;
}

img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

section {
  padding: 5rem 0;
}

body {
  background-color: lightpink;
  overflow-x: hidden;
}

h1 {
  color: #851106;
}

header {
  width: 100%;
  height: 10rem;
 /* position: absolute;
  top: 0;
  left: 0;
  z-index: 1;*/
}

.container {
  width: 100%;
  max-width: 98rem;
  margin: 0, auto;
  padding: 0 30rem;
}

nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .2) 
}

.nav-brand {
  width: 2rem;
}

.menu-icons i {
  font-size: 3.5rem;
  color: #fafafa;
  cursor: pointer;
}

.close i {
  color: #eb648c;
}

.nav-list {
  width: 25rem;
  height: 100vh;
  background-color: mediumseagreen;
  position: fixed;
  top: 0;
  right: -26rem;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  transition: all 650ms ease-in-out;
  margin: 0;
}

.nav-link active {
  right: 0;
}

.close{
  position: absolute;
  top: 1rem;
  left: 1.5rem;
}

.nav-item {
  margin: 1.5rem;
}

.nav-link {
  font-size: 1.6rem;
  text-transform: uppercase;
  color: rgba(86,34,38);
}

@media {
  nav {
    
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console