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.

            
              <html>
<head>
</head>
<body>

<div class="flex-container">

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

<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>
</article>

</div>

</body>
</html>


            
          
!
            
              .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;}
}
            
          
!
999px
Loading ..................

Console