cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

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

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Looking for quick-add? Try the external resource search, it's quicker and gives you access to the most recent version of thousands of libraries. ☝️

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

            
              <!DOCTYPE html>
<html>

<head>
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons"
      rel="stylesheet">
  <link rel="stylesheet" href="style.css">
  <script src="script.js"></script>
</head>

<body>
  <nav class="nav clear" role="navigation">
    <label for="show-menu" class="show-menu"><span class="img-fill"><i class="material-icons menu-position">menu</i></span></label>
    <input type="checkbox" id="show-menu" role="button">
    <div class="menu">
      <ul class="menubar">
        <li>
          <div>
            <label for="show-menu" class="show-menu close-menu"><i class="material-icons close-position">cancel</i></label>
            <input type="checkbox" id="show-menu" role="button">
          </div>
        </li>
        <li class="withmenu">
          <a href="#">About Us</a>
          <ul class="hidden">
            <li><a href="#">Overview</a></li>
            <li><a href="#">Mission</a></li>
            <li><a href="#">Team</a></li>
          </ul>
        </li>
        <li>
          <a href="#">Products</a>
        </li>
        <li class="withmenu">
          <a href="#">Menu Item</a>
          <ul class="hidden">
            <li><a href="#">Sub Item 1</a></li>
            <li><a href="#">Sub Item 2</a></li>
          </ul>
        </li>
        <li>
          <a href="#">Blog</a>
        </li>
        <li>
          <a href="#">Contact</a>
        </li>

      </ul>
    </div>
  </nav>
  <div class="arrow-right">Go ahead and resize the panel</div></div>
</body>

</html>
            
          
!
            
              /* Styles go here */

/* Styles go here */
body {
  margin: 0;
  padding: 0;
  background-color: #ededed;
}
/* global box-sizing */
*,
*:after,
*:before {
	-moz-box-sizing:border-box;
	box-sizing:border-box;
	-webkit-font-smoothing:antialiased;
	font-smoothing:antialiased;
	text-rendering:optimizeLegibility;
}
.clear:before,
.clear:after {
    content:' ';
    display:table;
}

.clear:after {
    clear:both;
}
.clear {
    *zoom:1;
}
a {
  text-decoration: none;
}
nav {
  background-color: #11d6a4;
  box-shadow: 0 3px 3px #dedede;
  height: 54px;
  position: relative;
}
.menu ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
  font-size: 18px;
  font-family: 'Oswald', sans-serif;
}

.menu ul li {
  display: inline-block;
  position: relative;
}

.menu ul li a {
  display: block;
  padding: 13px 13px 14px;
  color: #fff;
}

.menu ul li:hover {
  background-color: #0cb78a;
  color: #fff !important;
  z-index: 101;
}

.menu ul li ul {
  display: none;
  width: 250px;
  left: 0;
}

.menu ul li ul li {
  float: none;
  background: #0cb78a;
  display: block;
  color: #fff;
  border-radius: 0;
  border-top: solid 1px #11c693;
}

.menu ul li ul li:first-child {
  border-top: none;
}

.menu ul li ul li a {
  width: auto;
  min-width: 100px;
  color: #fff !important;
}

.menu ul li ul li a:hover {
  color: white !important;
  background-color: #11c693;
}

.menu ul li.mobile-btn {
  display: none;
}

.blog-btn {
  visibility: show;
}

.menu ul li a:hover + .hidden,
.hidden:hover {
  display: block;
  position: absolute;
}

.withmenu a:hover {}


/*Style 'show menu' label button and hide it by default*/

.show-menu {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-decoration: none;
  color: #fff;
  text-align: center;
  padding: 10px 0;
  display: none;
  text-indent: -9999;
}

.close-menu {
  background: #19c589;
  height: 54px;
  position: relative;
}

.close-position {
  position: absolute;
  margin: auto;
  left: 10px;
  top: 0;
  bottom: 0;
}

/*

Arrow Right

*/
.arrow-right {
  color: #999;
  font-family: helvetica;
  font-weight: bold;
  margin: 12px;
  text-align: center;
}

/*Hide checkbox*/

input[type=checkbox] {
  display: none;
  -webkit-appearance: none;
}
.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 36px;  /* Preferred icon size */
  display: inline-block;
  width: 1em;
  height: 1em;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;

  /* Support for all WebKit browsers. */
  -webkit-font-smoothing: antialiased;
  /* Support for Safari and Chrome. */
  text-rendering: optimizeLegibility;

  /* Support for Firefox. */
  -moz-osx-font-smoothing: grayscale;

  /* Support for IE. */
  font-feature-settings: 'liga';
}
@media screen and (max-width: 480px) {
  input[type=checkbox]:checked ~ .menu ul {
    display: block;
    left: 20px;
  }
  /*Make dropdown links appear inline*/
  .menu ul {
    -webkit-transition: all 0.8s;
    -moz-transition: all 0.8s;
    -ms-transition: all 0.8s;
    -o-transition: all 0.8s;
    transition: all 0.8s;
    position: static;
    display: block;
    background: #19c589;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 900px;
    box-shadow: 0 0 10px;
  }
  .menu ul li ul {
    display: none !important;
  }
  .menu ul li.mobile-btn {}
  /*Create vertical spacing*/
  .menu ul li {
    border: none;
  }
  /*Make all menu links full width*/
  .menu ul li,
  .menu ul li a {
    width: 100%;
  }
  .menu ul li {
    border-radius: 0;
  }
  .menu ul li a {
    border-bottom: solid 1px #19c589;
  }
  .menu ul li a:hover {
    border-radius: 0 !important;
  }
  .menu ul li a:active {
    background-color: #d00 !important;
  }
  .show-menu {
    display: block;
  }
  .img-fill {
    display: inline-block;
    height: 54px;
    width: 48px;
    background-color: #0cb78a;
    float: right;
    position: absolute;
    top: 0;
    right: 0;
  }
  .menu-position {
    position: absolute;
    margin: auto;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
  }
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console