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

              
                <link href='https://fonts.googleapis.com/css?family=Lato:400,700,900' rel='stylesheet' type='text/css'>
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<div class="body">
</div>
<ul class="tabs">
  <li><a href="#"><i class="fa  fa-cog"></i>Content Tab #1</a>
    <ul class="menu">
      <li><h1>Content Title</h1><p>Morbi blandit ultricies nisl sagittis malesuada. Sed porttitor rhoncus mattis. Aenean aliquam congue lectus sit amet bibendum.</p></li>
    </ul>
  </li>
  <li><a href="#"><i class="fa  fa-cog"></i>Content Tab #2</a>
    <ul class="menu">
      <li><h1>Content Title</h1><p>Morbi blandit ultricies nisl sagittis malesuada. Sed porttitor rhoncus mattis. Aenean aliquam congue lectus sit amet bibendum.</p></li>
    </ul>
  </li>
  <li><a href="#"><i class="fa  fa-cog"></i>Content Tab #3</a>
    <ul class="menu">
      <li><h1>Content Title</h1><p>Morbi blandit ultricies nisl sagittis malesuada. Sed porttitor rhoncus mattis. Aenean aliquam congue lectus sit amet bibendum.</p></li>
    </ul>
  </li>
  <li><a href="#"><i class="fa  fa-cog"></i>Content Tab #4</a>
    <ul class="menu">
      <li><h1>Content Title</h1><p>Morbi blandit ultricies nisl sagittis malesuada. Sed porttitor rhoncus mattis. Aenean aliquam congue lectus sit amet bibendum.</p></li>
    </ul>
  </li>
  <li><a href="#"><i class="fa  fa-cog"></i>Content Tab #5</a>
    <ul class="menu">
      <li><h1>Content Title</h1><p>Morbi blandit ultricies nisl sagittis malesuada. Sed porttitor rhoncus mattis. Aenean aliquam congue lectus sit amet bibendum.</p></li>
    </ul>
  </li>
  <li><a href="#"><i class="fa  fa-cog"></i>Content Tab #6</a>
    <ul class="menu">
      <li><h1>Content Title</h1><p>Morbi blandit ultricies nisl sagittis malesuada. Sed porttitor rhoncus mattis. Aenean aliquam congue lectus sit amet bibendum.</p></li>
    </ul>
  </li>

</ul>
              
            
!

CSS

              
                .body{
  background:url("https://i.imgur.com/6ghgesn.jpg");
  width:100%;
  height:100%;
  position:fixed;
  top:0;
  left:0;
}

body{
  background:url("https://i.imgur.com/6ghgesn.jpg");
}

.tabs{
  width:500px;
  margin:0 auto;
  box-shadow:#000 0px 1px 4px;
  margin-top:5%;
  padding:0;
  display:none;
  overflow:hidden;

  li{
    list-style:none;
    position:relative;
  }
  
  .menu:before{
    content:"";
    width:100%;
    height:100%;
    position:absolute;
    top:0;
    left:0;
    z-index:2000;
    opacity:0.1;
    background:url(http://l.rgbimg.com/cache1nwIso/users/c/cr/crisderaud/600/mftH3p2.jpg);
  }
  
  a{
    color:#FFF;
    font:10px Lato;
    font-weight:900;
    position:relative;
    z-index:5000;
    text-transform:uppercase;
    text-shadow:#000 0px 1px 4px;
    text-decoration:none;
    /* IE10 Consumer Preview */ 
background-image: -ms-linear-gradient(top, #253D59 0%, #1A2B3F 100%);

/* Mozilla Firefox */ 
background-image: -moz-linear-gradient(top, #253D59 0%, #1A2B3F 100%);

/* Opera */ 
background-image: -o-linear-gradient(top, #253D59 0%, #1A2B3F 100%);

/* Webkit (Safari/Chrome 10) */ 
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #253D59), color-stop(1, #1A2B3F));

/* Webkit (Chrome 11+) */ 
background-image: -webkit-linear-gradient(top, #253D59 0%, #1A2B3F 100%);

/* W3C Markup, IE10 Release Preview */ 
background-image: linear-gradient(to bottom, #253D59 0%, #1A2B3F 100%);
    display:block;
    padding:15px 15px 20px 15px;
    border-bottom:1px solid #000;
    position:relative;
    letter-spacing:5px;
  }
  
  a:hover{
background-image: -ms-linear-gradient(top, #D1384A 0%, #872430 100%);
background-image: -moz-linear-gradient(top, #D1384A 0%, #872430 100%);
background-image: -o-linear-gradient(top, #D1384A 0%, #872430 100%);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #D1384A), color-stop(1, #872430));
background-image: -webkit-linear-gradient(top, #D1384A 0%, #872430 100%);
background-image: linear-gradient(to bottom, #D1384A 0%, #872430 100%);
  }
  
  a:before{
    content:"\f13a";
    position:absolute;
    top:19px;
    right:30px;
    font-family:fontawesome;
    font-size:17px;
  }
  i{
    margin-right:10px;
    font-size:20px;
    position:relative;
    top:3px;
  }
  
  h1{
    color:#FFF;
    font:10px Lato;
    letter-spacing:5px;
    font-weight:900;
    text-transform:uppercase;
    margin:0;
    text-shadow:#000 0px 1px 4px;
    padding:20px 0px 10px 0px;
  }
  
  p{
    color:#FFF;
    font:10px Lato;
    letter-spacing:1px;
    line-height:20px;
    font-weight:700;
    margin-top:0;
    text-transform:uppercase;
    text-shadow:#000 0px 1px 4px;
  }
  
  a:nth-of-type(1){
    border-top:none;
  }
  a:nth-of-type(6){
    border-bottom:none;
  }
  ul{
    background:#121E2B;
    border:1px solid #000;
    padding:0px 0px 10px 47px;
    display:none;
    position:relative;
    border-top:none;
  }
}




              
            
!

JS

              
                $(".tabs").fadeIn(1000);
$("a").click(function(){
$(".menu").slideUp();
    if ($(this).next().is(":hidden")){
    $(this).next().slideDown(300)
    }
});



              
            
!
999px

Console