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.

              <header class="header">
  <h1>Slide left CSS Nav</h1>

<nav id="navigation" role="navigation">
  <input type="checkbox" id="toggle-nav" aria-label="open/close navigation">
  <label for="toggle-nav" class="nav-button"></label>
  <div class="nav-inner">
    <a href="#">Salade</a>
    <a href="#">Tomate</a>
    <a href="#">Oignons</a>
    <a href="#">Choucroute</a>
    <a href="#">Picon bière</a>

<div class="main">
  <h2>partie "main"</h2>
  <p>Navigation "off Canvas" basée sur :</p>
      <li>CSS pour la décoration du lien-bouton (via linear-gradients)</li>
      <li>CSS pour l'évément du "touch" (via :checked)</li>
      <li>CSS pour la transition</li>

<footer class="footer">
  <p>My <b>footer</b>
              /* Responsive Navigation styles begin here */

nav > input,
.nav-button {
  display: none; /* hidden on large screens */

/* small screens styles */
@media (max-width: 767px) {
 .nav-inner {
   position: absolute;
   width: 70vw;  
   transform: translateX(-100%) translateZ(0);
   transition: transform .2s;
   will-change: transform;
  /* here's goes the slide effect */
  input:checked ~ .nav-inner {
    transform: translateX(0);

  /* Button deco */
  .nav-button {
    display: block;
    position: absolute;
    top: 1rem; right: 1rem;
    z-index: 1;
    height: 3.5rem; width: 3.5rem;
    background-color: transparent;
    background-image: linear-gradient(to right, #333, #333),
      linear-gradient(to right, #333, #333),
      linear-gradient(to right, #333, #333);
    background-position: center top, center, center bottom;
    background-repeat: no-repeat;
    background-size: 3.5rem .9rem;
    padding: 0;
    outline: 0;
    border: 0;
    cursor: pointer;

/* Global deco */
* {
  box-sizing: border-box;
html {
  font-size: 62.5%;
body {
  margin: 0;
  padding: 0;
  font-size: 1.6em;
  font-family: arial, sans-serif;
a {
  color: #fff;
nav a {
  display: block;
  padding: .7em;
  margin-bottom: 2px;
  text-decoration: none;
  background: #777;
h1 {
  margin-left: 1rem;
  color: #333;
.main, footer {
  padding: 2rem;
  background-color: #eee;
  color: #333;

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