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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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.


<div class="flex-container">

<nav class="nav">
  <li><a href="#">Menu1</a></li>
  <li><a href="#">Menu2</a></li>
  <li><a href="#">Menu3</a></li>

<article class="article">
  <h1>Lorem ipsum</h1>
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec elementum vehicula magna, sit amet accumsan nulla tristique vel. Quisque sed sapien quam. Phasellus sed elit faucibus, bibendum libero at, scelerisque nisi. Phasellus luctus, sem sed rutrum auctor, velit ipsum porta nibh, nec vestibulum mi turpis eu ligula. Integer pulvinar neque magna, vel ullamcorper nibh semper vel. Proin ullamcorper vestibulum leo et dignissim. Proin faucibus in lorem porttitor interdum. Praesent pellentesque maximus nibh, vitae pretium elit tincidunt sit amet. Donec malesuada vitae elit vel eleifend. Fusce viverra urna in dolor venenatis venenatis. Praesent tincidunt quam nisl, ac luctus sem mollis non. Nunc sit amet elementum sem. Suspendisse potenti.</p>



              .flex-container {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-flow: row wrap;
    flex-flow: row wrap;
    text-align: center;

.flex-container > * {
    padding: 15px;
    -webkit-flex: 1 100%;
    flex: 1 100%;

.article {
    text-align: left;

.nav {background:#eee;}

.nav ul {
    list-style-type: none;
 padding: 0;
.nav ul a {
 text-decoration: none;

@media all and (min-width: 768px) {
    .nav {text-align:left;-webkit-flex: 1 auto;flex:1 auto;-webkit-order:1;order:1;}
    .article {-webkit-flex:5 0px;flex:5 0px;-webkit-order:2;order:2;}
Loading ..................