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

              
                <div id="page-wrapper">
  <header id="header">
    <div class="logo">
      <img
        id="header-img"
         src="https://i.ibb.co/82NySdS/447d1e19-efbe-4623-a06a-483a501e7c17-200x200.png" alt="447d1e19-efbe-4623-a06a-483a501e7c17-200x200" border="0"/>
    </div>
 
    <nav id="nav-bar">
      <ul>
        <li><a class="nav-link"         
href="#beers">Beers</a></li>
        <li><a class="nav-link"         
href="#how-we-brew">How we brew</a></li>
        <li><a class="nav-link"         
href="#prices">Prices</a></li>
      </ul>
    </nav>
  </header>
  
  <div class="container"></div>
  
  <section id="hero">
    <h2>Handcrafted liquid masterpieces<h2>
     
      <form id="form"
  action="https://www.freecodecamp.com/email-submit">
        <input
          name="email"
          id="email"
          type="email"
          placeholder="Enter yor email address"
          required
          />
        <input id="submit" type="submit"
  value="Let's get it started" class="btn" />
      </form>
      </section>
    
  <div class="container">
    <section class="container">
      <section id="beers">
        <div class="grid">
          <div class="icon"><i class="fa fa-3x fa-fire"></div>
          </div>
          <div class="desc">
            <h2>Types of Brews</h2>
     <p>
       We have nearly any sort of beer to please even the most delicate palates like: <strong>Pale Lager</strong> and <strong>Pilsner</strong>, <strong>Brown Ale</strong>, <strong>Porter</strong>, <strong>Wheat Beer</strong>, etc.
            </p>
            </div>
          </div>
            <div class="grid">
              <div class="icon"><i class="fa fa-3x fa-truck"></i></div>
              <div class="desc">
                <h2>How we brew</h2>
                <p>
                  Brewing is the production of beer by steeping a starch source (cereal grains, the most popular of which is barley) in water and fermenting the resulting sweet liquid with yeast.
                </p>
              </div>
          </div>
           <div class="grid">
        <div class="icon">
          <i class="fa fa-3x fa-battery-full" aria-hidden="true"></i>
        </div>
        <div class="desc">
        <section id="prices">
          <h2>Prices</h2>
          <p>
            We do not list prices for our product because every beer is customized for clients and costs may vary accordingly.
          </p>
          <section>
             </div>
          </div>
          </section>
        <section id="how-we-brew">
         <iframe id="video" width="560" height="300" src="https://www.youtube.com/embed/wKHf8IFnwxA" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
          </section>
        <footer>
          <ul>
            <li><a href="#">Privacy</a></li>
            <li><a href="#">Terms</a></li>
            <li><a href="#">Contact</a></li>
          </ul>
          <span>Copyright 2019, Handcafted Liquid Masterpieces</span>
             </footer>
          </div>
         
          


        
      
              
            
!

CSS

              
                @import 'https://fonts.googleapis.com/css?family=Lato:400,700';

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: brown;
  font-family: 'Lato', sans-serif;
}

#page-wrapper {
  position: relative;
}

a {
  color: blue;
  text-decoration: none;
}

.container {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

.grid {
  display: flex;
}

header {
  position: fixed;
  top: 0;
  min-height: 75px;
  padding: 0 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #eee;
}

.logo {
  width: 60vw;
}

@media (max-width: 650px) {
  .logo {
    margin-top: 15px;
    width: 100%;
    position: relative;
  }
}

.logo > img {
  width: 5%;
  height: 100%;
  max-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-left: 20px;
}

@media (max-width: 650px) {
  .logo > img {
    margin: 0 auto;
  }
}


@media (max-width: 650px) {
  nav {
    margin-top: 1opx;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 50px;
  }
  nav li {
    padding-bottom: 5px;
  }
}

#nav {
  display: inline;
}
nav > ul {
  width:35vw;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

@media (max-width: 600px) {
  header {
    flex-wrap: wrap;
  }
  
.logo {
    width: 10vw;
  }
  
@media (max-width: 650px) {
  .logo {
    margin-top: 15px;
    width: 100%;
    position: relative;
  }
    
.logo > img {
  width: 100%;
  height: 100%;
  max-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-left: 20px;
}
    
@media (max-width: 650px) {
  .logo > img {
    margin: 0 auto;
  }
}

nav {
  font-weight: 400;
}
@media (max-width: 650px) {
  nav {
    margin-top: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 50px;
  }
  nav li {
    padding-bottom: 5px;
  }
}
  
#hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 200px;
  margin-top: 50px;
  }

 #hero > h2 {
  margin-bottom: 20px;
  word-wrap: break-word;
}

#hero input[type="email"] {
  max-width: 275px;
  width: 100%;
  padding: 5px;
}

#hero input[type="submit"] {
  max-width: 150px;
  width: 100%;
  height: 30px;
  margin: 15px 0;
  border: 0;
  background-color: #f1c40f;
}

#hero input[type="submit"]:hover {
  background-color: orange;
  transition: background-color 1s;
}

@media (max-width: 650px) {
  #hero {
    margin-top: 120px;
  }
}
  
#beers {
  margin-top: 30px;
}

#beers .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 125px;
  width: 20vw;
  color: darkorange;
}

#beers {
  margin-top: 30px;
}

#beers .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 125px;
  width: 20vw;
  color: darkorange;
}

#how-we-brew {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

#how-we-brew > iframe {
  max-width: 560px;
  width: 100%;
}

#prices {
  margin-top: 60px;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

@media (max-width: 800px) {
  #prices {
    flex-direction: column;
  }


              
            
!

JS

              
                
              
            
!
999px

Console