Pen Settings

HTML

CSS

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

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

Auto Save

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

              
                <nav>
      <a href="/">
        <svg width="65px" height="45px" viewBox="0 0 13 9" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
        <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
            <path d="M0.67578125,8.97265704 L0.67578125,2.22266348 C0.67578125,2.22266348 1.51953045,0.957039684 3.73827833,0.957039684 C5.9726512,0.957039684 6.67577553,2.16016354 6.67577553,2.16016354 C6.67577553,2.16016354 7.37889986,0.957039684 9.61327273,0.957039684 C11.8320206,0.957039684 12.6757698,2.22266348 12.6757698,2.22266348 L12.6757698,8.97265704 C12.6757698,8.97265704 11.1913962,7.87890808 9.58202276,7.87890808 C7.98827428,7.87890808 6.67577553,9.05078197 6.67577553,9.05078197 C6.67577553,9.05078197 5.36327678,7.87890808 3.7695283,7.87890808 C2.16015483,7.87890808 0.67578125,8.97265704 0.67578125,8.97265704 Z M1.69140528,2.48828822 L1.69140528,7.39453354 C1.69140528,7.39453354 2.33202967,6.91015901 3.86327821,6.91015901 C5.37890176,6.91015901 6.175776,7.81640814 6.175776,7.81640814 L6.175776,2.70703802 C6.175776,2.70703802 5.09765203,1.92578876 3.73827833,1.92578876 C2.39452961,1.92578876 1.69140528,2.48828822 1.69140528,2.48828822 Z M7.17577505,2.70703802 L7.17577505,7.81640814 C7.17577505,7.81640814 7.92577434,6.91015901 9.48827285,6.91015901 C11.0351464,6.91015901 11.6601458,7.39453354 11.6601458,7.39453354 L11.6601458,2.48828822 C11.6601458,2.48828822 10.9570214,1.92578876 9.61327273,1.92578876 C8.25389902,1.92578876 7.17577505,2.70703802 7.17577505,2.70703802 Z" id="book" fill="#B71C1C"></path>
        </g>
    </svg>
      <i>B</i><i>o</i><i>o</i><i>o</i><i>o</i><i>o</i><i>o</i><i>k</i><i>s</i>
       <span>_</span></a>      
      <a href="pinocchio.html">Pinocchio <span>Winscluss</span></a>
      <a href="internet.html">Internet. Au-delà du virtuel <span>Jean&#8209;Noël&nbsp;Lafargue, Mathieu&nbsp;Burniat</span></a>
      <a href="jean-doux.html">Jean Doux et le mystère de&nbsp;la&nbsp;disquette&nbsp;molle <span>Philippe&nbsp;Valette</span></a>
      <a href="carnet.html">Carnet de santé foireuse <span>Pozla</span></a>
      <a href="moins.html">Moins qu’hier <span>Fabcaro</span></a>
      <a href="de-rien.html">De rien <span>Geoffroy Monde</span></a>
      <a href="blaise.html">Blaise <span>Dimitri Planchon</span></a>
      <a href="quartier.html">Quartier lointain <span>Jirō Taniguchi</span></a>
      <a href="pyongyang.html">Pyongyang <span>Guy Delisle</span></a>
 </nav>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Muli:400,700');

body{
  background:#fff;
  margin:0;
  font-family:Georgia, 'Times New Roman', Times, serif;
  line-height: 1.5;
}

nav a{
  display:block;
  font-family: 'Muli', sans-serif;
  font-size:calc(20px + (100vw - 320px) / 48);
  text-decoration: none;
  color:#333;
  padding:8px;
  margin:0;
  font-weight: 400;
  background: #fff;
  transition: background-color .4s, font-size .4s;
}

nav a:hover{
  background:#f6f6f6;
}


nav a span{
  font-size:calc(16px + (100vw - 320px) / 256);
  font-family:Georgia, 'Times New Roman', Times, serif;
  opacity: 0.8;

}

nav>a>svg{
  height:auto;
  width:1em;
  display: inline-block;
}

i{
  font-style: normal;
}

i:nth-child(1) {color: #B71C1C;}
i:nth-child(2) {color: #880E4F;}
i:nth-child(3) {color: #4A148C;}
i:nth-child(4) {color: #311B92;}
i:nth-child(5) {color: #1A237E;}
i:nth-child(6) {color: #0D47A1;}
i:nth-child(7) {color: #01579B;}
i:nth-child(8) {color: #006064;}
i:nth-child(9) {color: #004D40;}
i:nth-child(10){color: #1B5E20;}

nav:first-child>a:nth-child(1) {color: #B71C1C;}
nav:first-child>a:nth-child(2) {color: #880E4F;}
nav:first-child>a:nth-child(3) {color: #4A148C;}
nav:first-child>a:nth-child(4) {color: #311B92;}
nav:first-child>a:nth-child(5) {color: #1A237E;}
nav:first-child>a:nth-child(6) {color: #0D47A1;}
nav:first-child>a:nth-child(7) {color: #01579B;}
nav:first-child>a:nth-child(8) {color: #006064;}
nav:first-child>a:nth-child(9) {color: #004D40;}
nav:first-child>a:nth-child(10){color: #1B5E20;}
              
            
!

JS

              
                
              
            
!
999px

Console