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

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

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.

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.

            
              <header>
  <div class="cabecera">
    <img src="https://1.bp.blogspot.com/-XL4Br3tCL3g/U7PfReX_VcI/AAAAAAAAQpI/BmljEZJkH44/s1200/esperando.gif"/>
  </div>
  <h1>Full drop menu</h1>
   <nav>
    <ul class="fullnav">
      <li><a href="#">Inicio</a></li>
      <li><a href="#">Países</a>
        <ul>
          <li><a href="#">Argentina</a></li>
          <li><a href="#">Chile</a></li>
          <li><a href="#">España</a></li>
          <li><a href="#">México</a></li>
          <li><a href="#">Perú</a></li>
          <li><a href="#">Venezuela</a></li>
        </ul>
      </li>
      <li><a href="#">Rutas</a>
       <ul>
          <li><a href="#">Norte</a></li>
          <li><a href="#">Sudeste</a></li>
          <li><a href="#">Centro-Oeste</a></li>
          <li><a href="#">Camino 42</a></li>
        </ul>
      </li>
      <li><a href="#">Galería</a>
        <ul>
          <li><a href="#">En verde</a></li>
          <li><a href="#">Ocres</a></li>
          <li><a href="#">Amigos</a></li>
          <li><a href="#">Miscelánea</a></li>
        </ul>
      </li>
      <li><a href="#">Los protas</a>
        <ul>
          <li><a href="#">Antonio Ruiz</a></li>
          <li><a href="#">Benjamín Sanz</a></li>
          <li><a href="#">Carlos Pardo</a></li>
          <li><a href="#">John Smith</a></li>
          <li><a href="#">Sam Gordon</a></li>
          <li><a href="#">Peter Ustinov</a></li>
        </ul>
      </li>
    </ul>
  </nav>
</header>
<section>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut sit amet odio pharetra, tincidunt arcu in, luctus est. Maecenas varius lectus nec enim commodo, id hendrerit tellus congue. Quisque sagittis tristique nibh vel ornare. Donec sit amet feugiat risus, vel interdum sem. Morbi ut sem fringilla, congue ante quis, elementum leo. Vestibulum eu augue est. Quisque mattis gravida lectus a rutrum. Etiam et nisi in nibh dictum vehicula a eget est. Praesent malesuada magna in mauris fermentum, id convallis augue auctor. Vestibulum a dapibus leo. Nam quis iaculis enim, eu varius erat. Aenean non tortor faucibus, tempor nunc nec, dignissim nibh. Integer lorem lacus, lobortis dapibus pretium in, sodales et nibh. Phasellus vitae aliquet leo. Aenean lectus quam, pretium dictum lectus id, volutpat ullamcorper risus.</p>
<p>
Donec id commodo magna. Nunc sed mauris felis. Vestibulum malesuada purus at nibh pretium, sed sollicitudin dolor feugiat. Nullam luctus lectus ut dignissim convallis. Cras quis elementum metus. Integer finibus rutrum ultrices. Curabitur nisl nulla, mollis id feugiat in, varius sed nisl. Vivamus id arcu purus. Vivamus hendrerit sed neque ut maximus. Sed luctus mattis dolor, et venenatis felis lobortis vel. Suspendisse in ligula vel leo consectetur facilisis nec sed leo. Sed quam felis, ornare nec augue sed, pellentesque blandit sem.</p>
</section>
<link href="https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz" rel="stylesheet type="text/css"/>

            
          
!
            
              body, html {
  margin: 0;
  padding: 0;
  background: #ccc;
  text-align: center;
  font-family: "Yanone Kaffeesatz", sans-serif;
  font-size: 20px;
  line-height: 22px;
}
.cabecera {
  width: 100%;
  height: 0;
  padding-bottom: 25%;
  overflow: hidden;
  position: relative;
  border-bottom: 4px double #666;
}
header img {
  position: absolute;
  top: -60%;
  left: 0;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}
nav {
  position: relative;
  width: 100%;
  margin: 0 auto;
}
ul.fullnav, ul.fullnav ul {
  list-style: none;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 0;
  text-align: center;
}
ul.fullnav {
  border-top: 4px double #666;
  border-bottom: 4px solid #999;
  background: #bbb;
}
ul.fullnav li {
  display: inline-block;
  margin: 0;
  padding: 0;
  font-size: 22px;
  line-height: 60px;
}
ul.fullnav li a {
  display: block;
  padding: 0 10px;
  text-decoration: none;
  text-transform: uppercase;
  color: #333;
}
ul.fullnav li ul {
  position: absolute;
  left: 0;
  width: 100%;
  height: 0;
  overflow: hidden;
  background: #999;
  line-height: 0;
  z-index: 3;
}
ul.fullnav ul a {
  color: white;
}
ul.fullnav li:hover a {
  background: #999;
}
ul.fullnav li:hover ul {
  height: auto;
}
ul.fullnav li:hover ul li a {
  background: transparent;
}
ul.fullnav li:hover ul li a:hover {
  text-decoration: none;
  color: #333;
}

section {
  padding: 40px;
  text-align: left;
}


            
          
!
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.

Console