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.

            
              <nav>
  <ul>
    <li>
      <a href="#">
        Home <span class="desc">- Welcome to my website<span class="long">, where you can find all of my information.</span></span>
       </a>
    </li>
    <li>
      <a href="#">
        About <span class="desc">- All about me<span class="long">.  Favorite things, what I do, where I am.</span></span>
       </a>
    </li>
    <li>
      <a href="#">
        Articles <span class="desc">- Read my posts<span class="long"> about things that interest me in my field.  I post daily and enjoy comments!</span></span>
       </a>
    </li>
    <li>
      <a href="#">
        Portfolio <span class="desc">- All of my projects<span class="long"> that I have done for clients and for myself.</span></span>
       </a>
    </li>
    <li>
      <a href="#">
        Contact <span class="desc">- Get in contact with me<span class="long"> through social media, email, or snail mail.</span></span>
       </a>
    </li>
  </ul>
</nav>
            
          
!
            
              @import "compass/css3";

nav {
   width:22em;
   @media (max-width: 800px) {
     width:15em;
    }
   @media (max-width: 600px) {
     width:8em;
    }
   @media (max-width: 410px) {
     width:6em;
    }
}

ul {
  list-style-type:none;
  width:100%;
}

li {
  padding:10px;
  border-radius:5px;
  border:1px solid #16525e;
  background-color:#22707f;
  transition: background-color .5s;
  -moz-transition: background-color .5s;
  -webkit-transition: background-color .5s;
  -o-transition: background-color .5s;
  
  
  @media (max-width: 410px) {
    padding:5px;
    border-radius:0;
    }
  
  &:hover {
    background-color:#36b2cc;
  }
  
  &:before {
    content: ' ';
	  height: 0;
	  position: absolute;
	  width: 0;
	  border: 10px solid transparent;
	  border-left-color: #333;
    @media (max-width: 410px) {
      border:none;
      
    }
    
  }

}

li a {
  text-decoration:none;
  color:#fff;
  padding-left:20px;
  
}

.desc {
  font-size:.8em;
  color:#3e3e3e;
  @media (max-width: 600px) {
      display:none;
    }
}

.long {
  @media (max-width:800px) {
    display:none;
  }
}


            
          
!
999px
Loading ..................

Console