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

Quick-add: + add another resource

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.

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.

              <!-- Main Navigation -->
<nav id="nav" class="nav" role="navigation">
  <div class="nav__container">
    <!-- Title -->
    <h1 class="nav__title">
      <a href="#" class="nav__title-link">Flexy Nav</a>
    <!-- Nav List -->
    <ul class="nav__list" role="menubar">
      <li class="nav__item">
        <a href="#" class="nav__link">Home</a>
      <li class="nav__item">
        <a href="#" class="nav__link">Services</a>
      <li class="nav__item">
        <a href="#" class="nav__link">About</a>
      <li class="nav__item">
        <a href="#" class="nav__link">Contact</a>
    <!-- Burger -->
    <a href="#" class="nav__burger"></a>

  </div> <!-- __container -->
</nav> <!-- .nav -->

              @import 'https://fonts.googleapis.com/css?family=PT+Serif';

// --- Colors ---
$off-white: #eee;
$black: #191919;
$blue: #2AA3BF;
$cream: #e1e0dc;

// --- Base Styles ---
body {
  font-family: 'PT Serif', serif;
  font-size: 20px;
  background-color: $cream;
  -webkit-font-smoothing: antialiased;

a {
  text-decoration: none;

// --- Main Navigation ---

// Namespace (treat as a component)
$ns: '.nav';

// Component styles
#{$ns} {
  $nav-height: 60px;
  // Nav
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: $nav-height;
  background-color: $black;
  // Nav Container
  &__container {
    padding: 0 15px;
  // Nav Title
  &__title {
    float: left;
    margin: 0;
    height: $nav-height;
  // Nav Title Link
  &__title-link {
    display: flex;
    align-items: center;
    padding-left: 0;
    height: 100%;
    color: $off-white;
    font-size: 22px;
    font-weight: 700;
    text-align: left;
    letter-spacing: 2px;

    &:hover {
      color: $off-white;

  // Nav List
  &__list {
    position: absolute;
    left: 0;
    top: $nav-height;
    width: 100%;
    height: 0;
    padding: 0;
    margin: 0;
    background-color: $black;
    list-style: none;
    opacity: 0;
    overflow: hidden;
    transition: opacity 300ms ease-out,
                height 0ms linear 300ms;

  // Nav List Item Link
  &__link {
    display: block;
    padding: 15px 0;
    color: $off-white;
    text-align: center;
    text-decoration: none;
    letter-spacing: 1px;
  // Nav Burger
  &__burger {
    float: right;
    position: relative;
    width: $nav-height;
    height: $nav-height;

    &:after {
      content: '';
      position: absolute;
      left: 10px;
      width: 40px;
      height: 4px;
      background-color: $off-white;
      transform-origin: 50% 50%;
      transition: transform 275ms ease;
    &:before {
      top: 22px;
    &:after {
      top: 34px;

Loading ..................