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

              
                <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"/>

              
            
!

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;
}


              
            
!

JS

              
                
              
            
!
999px

Console