Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


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


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.


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.


                <link href=',300,100' rel='stylesheet' type='text/css'>

<div class="fullWidth header">
  <div class="container">
    <div class="col-xs-12 col-sm-2 col-md-3 col-md-offset-1 col-lg-4 col-lg-offset-1 header-logo"><a href="#" class="header-logo-name">WHITE.</a></div>
    <div class="col-xs-12 col-sm-10 col-md-8 col-lg-6 header-nav">
          <a href="#" class="header-nav-link header-nav-top-link">Home</a>
          <a href="#" class="header-nav-link header-nav-top-link">About Us</a>
            <li><a href="#" class="header-nav-link header-nav-sub-link">Who are we?</a></li>
            <li><a href="#" class="header-nav-link header-nav-sub-link">Careers</a></li>
            <li><a href="#" class="header-nav-link header-nav-sub-link">Press</a></li>
          <a href="#" class="header-nav-link header-nav-top-link">Services</a>
            <li><a href="#" class="header-nav-link header-nav-sub-link">Analytics and CRO</a></li>
            <li><a href="#" class="header-nav-link header-nav-sub-link">Branded Content</a></li>
            <li><a href="#" class="header-nav-link header-nav-sub-link">Pay Per Click</a></li>
            <li><a href="#" class="header-nav-link header-nav-sub-link">Search Engine Optimisation</a></li>
          <a href="#" class="header-nav-link header-nav-top-link">Case Studies</a>
            <li><a href="#" class="header-nav-link header-nav-sub-link">Trafalgar Tours</a></li>
            <li><a href="#" class="header-nav-link header-nav-sub-link">Nominet</a></li>
            <li><a href="#" class="header-nav-link header-nav-sub-link">Miele GB</a></li>
            <li><a href="#" class="header-nav-link header-nav-sub-link">M&G Investments</a></li>
            <li><a href="#" class="header-nav-link header-nav-sub-link">Deloitte LLP</a></li>
            <li><a href="#" class="header-nav-link header-nav-sub-link">Christie+Co</a></li>
            <li><a href="#" class="header-nav-link header-nav-sub-link">Audley Travel</a></li>
          <a href="#" class="header-nav-link header-nav-top-link">Blog</a>
          <a href="#" class="header-nav-link header-nav-top-link">Contact Us</a>


                body {margin:0;padding:0;}
.header {background-color:#111;}

* {transition:all 0.3s;-webkit-transition:all 0.3s;font-family: 'Roboto', sans-serif;}
.header-nav {position:relative;float:left;margin:0 auto;}
.header-nav ul {position:absolute;float:left;list-style:none;margin:0;padding:0;}
.header-nav ul li {position:relative;float:left;border-left:4px solid rgba(224, 52, 106, 1);}
.header-nav ul li ul {margin-left:-4px;}
.header-nav > ul {position:relative;}
.header-nav > ul > li:last-child {border-right:4px solid rgba(224, 52, 106, 1);}

.header-nav > ul > li > .header-nav-link + ul li {width:150px;opacity:0;height:0;margin-top:-48px;border-bottom:2px solid rgba(224, 52, 106, 1);}
.header-nav > ul > li:hover .header-nav-link + ul > li {opacity:1;height:auto;margin-top:0;}
.header-nav .header-nav-link {float:left;text-decoration:none;color:#FFF;font-weight:300;padding:15px;width:100%;}
.header-nav .header-nav-link:hover {background-color:rgba(224, 52, 106, 1) !important;}

.header-nav .header-nav-top-link {padding: 25px 15px 25px;}
.header-nav ul li:hover .header-nav-link {background-color:#333;}
.header-nav ul li:hover .header-nav-top-link {background-color:rgba(224, 52, 106, 0.8);}

.header-nav > ul > li > .header-nav-top-link + ul {top:70px;}
.header-nav > ul > li:hover .header-nav-sub-link {background-color:#333;}

.header-logo > .header-logo-name {float:left;color:#FFF;font-size:30px;font-weight:bold;padding:14px 0;}
.header-logo > .header-logo-name:hover {text-decoration:none;}

@media (max-width: 767px) {
  .header-nav > ul > li {width:100%;border-right:4px solid rgba(224, 52, 106, 1);border-bottom:2px solid rgba(224, 52, 106, 1);}
  .header-nav > ul > li:first-child > a {font-size:18px;font-weight:400;}
  .header-nav > ul > li:last-child {border-bottom:none;}
  .header-nav > ul > li > .header-nav-top-link + ul {position:relative;top:0px;left:4px;width:100%;}
  .header-nav > ul > li > .header-nav-top-link + ul li {position:relative;float:left;border-left:none;width:100%;}