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.

            
              <h2>Bad navigation</h2>
<nav class="bad-navigation">
  <ul>
    <li><a href="#">lami</a></li><!--
 --><li><a href="#">du</a></li><!--
 --><li><a href="#">developpeur</a></li><!--
 --><li><a href="#">.fr</a></li>
  </ul>
</nav>

<h2>Better navigation</h2>
<nav class="better-navigation">
  <ul>
    <li><a href="#">lami</a></li><!--
 --><li><a href="#">du</a></li><!--
 --><li><a href="#">developpeur</a></li><!--
 --><li><a href="#">.fr</a></li>
  </ul>
</nav>

<h2>Best navigation</h2> 
<nav class="best-navigation">
  <ul>
    <li><a href="#">lami</a></li><!--
 --><li><a href="#">du</a></li><!--
 --><li><a href="#">developpeur</a></li><!--
 --><li><a href="#">.fr</a></li>
  </ul>
</nav>

<a href="http://lamidudeveloppeur.fr/" class="link">Visit lamidudeveloppeur.fr</a>
            
          
!
            
              *,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
  font-family: Verdana, Arial, sans-serif;
}

/* Basic styles */
body {background: #e6e6e6;}
h2 {margin: 1em 6.5em;}
nav {margin: 2em 0 5em 7em;}
li {list-style-type: none; display: inline;}
a {color: #fff; z-index: 5;}

/* So you can see when the link is working */
a:hover, a:focus {background: #555; text-decoration: none;}

/* Bad navigation practice */
.bad-navigation li,
.better-navigation li {
  background: #222;
  padding: 1.5em;
}

/* MacGyver trick to improve usability */
.better-navigation a {position: relative;}
.better-navigation a:before {
  background: rgba(249, 105, 98, .3);
  bottom: -20px;
  content: "";
  left: -20px;
  position: absolute;
  right: -20px;
  top: -20px;
}

/* Best navigation practice */
.best-navigation a {
  background-color: #222;
  padding: 1.5em;
}

.best-navigation a:hover,
.best-navigation a:focus {background: #555;}

/* Footer link */
.link {
  color: #222;
  margin-left: 10em;
}
.link:hover, .link:focus {
  color: #fff;
  text-decoration: none;
}
            
          
!
999px
Loading ..................

Console