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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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.

              <ul class="layer_1">
  <li class="dropdown">
    <ul class="layer_2">
      <li>A product</li>
      <li>Another product</li>
      <li>A third product</li>
        Wait, a product range?
        <ul class="layer_3">
          <li>Product something</li>
  <li>Contact Us</li>
              ul {
  background-color: tomato;
  color: #fff;
  font-family: sans-serif;
  margin: 0;
  padding: 0;

ul.layer_1 {
  margin: 20px auto;
  position: relative;
  width: 70%;

  ul.layer_1 li {
    display: inline-block;
    padding: 11px 10px 9px;
    width: 24%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;

  ul ul {
    border-right: 3px solid #444;
    border-top: 3px solid #444;
    margin-top: 9px;
    opacity: 1;
    position: absolute;
    visibility: visible;

  ul.layer_2 ul {
    margin: -29px 96.5% 0 ;

    ul.layer_2 li {
      display: block;
      width: 100%;

  ul.layer_2 li:hover ul {
    opacity: 1;
    visibility: visible;
Loading ..................