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 Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

              
                <header>
  <div class="hero">
    <div class="container">
      <nav class="navbar navbar-expand-lg navbar-dark">

        <a class="navbar-brand" href="#"><img src="https://www.dropbox.com/s/wwe8870bgswddz1/200x100logo_White_Transparent.png?raw=1" target="blank" alt="logo" height="100"></a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
          <span class="navbar-toggler-icon"></span>
        </button>

        <div class="collapse navbar-collapse" id="navbarCollapse">
          <ul class="navbar-nav mr-auto">

            <li class="nav-item active">
              <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="#">About</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="#">Gallery</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="#">Blog</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="#">Contact</a>
            </li>
            <div class="social soci-mobile">
              <a href="https://www.facebook.com/ewebdesigns/" target="blank" class="fa fa-facebook-square"></a>
              <i class="fa fa-twitter-square" aria-hidden="true"></i>
              <i class="fa fa-github" aria-hidden="true"></i>
            </div>
          </ul>

        </div>
      </nav>
      <div class="hero-heading">
        <h1>We make your website with love.</h1>
        <div class="hero-sub-title mt-5">
          <a href="#" class="text-white"><i class="fa fa-play-circle"></i> Learn how to be loved</a>
        </div>
      </div>

    </div>
  </div>
</header>

<section>
  <div class="p-3 mt-5 text-center">
    <iframe src="https://www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fewebdesigns%2F&width=450&layout=standard&action=like&size=small&show_faces=true" width="450" height="80" style="border:none;overflow:hidden"></iframe>
  </div>

</section>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Open+Sans&display=swap');

.navbar {
  padding-top: 80px;
}

.nav-link {
  font-family: Roboto, Helvetica Neue, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  min-width: 88px;
  line-height: 36px;
  padding: 0 16px;
  border-radius: 2px;
  text-align: center;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
  position: relative;
  color: #f4f4f4;
  box-sizing: border-box;
  position: relative;
  cursor: pointer;
  outline: 0;
  border: none;
}

.navbar-brand {
  font-family: Roboto, Helvetica Neue, sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #f4f4f4;
  padding: 0 16px;
}

.hero {
  height: 660px;
  background: linear-gradient(to bottom left, #77c4e3, #8176b5);
  background-size: cover;
  background-position: center;
}

.hero-heading {
  color: #fff;
  position: absolute;
  top: 220px;
  left: 0;
  right: 0;
  margin: auto;
  text-align: center;
  line-height: 1.3;
  font-weight: 300;
  font-family: "Roboto Slab", sans-serif;
  padding: 0 8px;
  max-width: 300px;
  width: 100%;
  z-index: 5;
}

.hero-sub-title {
  font-family: 'Open Sans', sans-serif;
}

.hero-sub-title > a:hover {
  color: #f4f4f4;
}

/* 
=================================
--------- Media Query -----------
===============================*/

/*==============================
---------- Mobile View  --------
==============================*/
@media (min-width: 350px) and (max-width: 1024px) {
  .navbar {
  padding-top: 20px;
}
  
  .social {
    text-align: center;
  }
  .social {
    .fa {
      color: #807cb9 !important;
    }
    .fa-facebook-square {
      margin-left: 0 !important;
    }
  }
  .navbar-collapse {
    background-color: #fff;
    padding: 20px;
    z-index: 55;
  }

  nav {
    ul li > a {
      color: #807cb9 !important;
      &:hover {
        opacity: 0.8;
      }
    }
  }
}

/* Mobile -btn */
.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgb(255, 255, 255)' stroke-width='3' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.navbar-dark .navbar-toggler {
  border-color: transparent !important;
  &:focus {
    border-color: transparent !important;
  }
}

/* ========================
-------- Desktop ----------
=========================*/

@media (min-width: 1200px) {
  .navbar {
    width: 1140px;
    padding-left: 120px;
  }

  .text-white {
    font-family: "Open Sans", sans-serif;
  }
}

.social {
  .fa {
    font-size: 20px;
    min-width: 44px;
    line-height: 36px;
    color: #f4f4f4;
  }

  .fa-facebook-square {
    margin-left: 50px;
  }

  .fa:hover {
    cursor: pointer;
    color: #f4f4f4;
    opacity: 0.7;
    text-decoration: none;
  }
}

              
            
!

JS

              
                //** Transparent navbar, inspired by cloudflare **//
              
            
!
999px

Console