Pen Settings

HTML

CSS

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.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

HTML

            
              <header><h1>2-хколоночный flexbox макет</h1></header>
<div id="wrap">
  <section id="main">
    <h2>Макет с колонками одинаковой высоты</h2>
    <p>Базируется на свойстве flexbox</p>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Odio blanditiis voluptate necessitatibus ut, molestias. Nobis, id, magni. Sunt iste, tempora.</p>
    <p>Voluptate ducimus a, unde, expedita, pariatur nemo eligendi rem quos sapiente quas explicabo sit deleniti libero illo et mollitia molestiae.</p>
    <p>Magnam eos optio in dolores quis minus incidunt eum voluptas sint adipisci omnis deserunt, laborum delectus quisquam, odit dolorum, ullam.</p>
    <img src="http://lorempixel.com/800/400/city" alt="Picture" />
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aspernatur at fuga sit debitis nostrum provident dignissimos minima velit deserunt, libero nam nisi magnam? Provident explicabo nostrum odio. Quos, autem, eligendi!</p>
    <p>Hic atque, soluta alias delectus, praesentium sequi distinctio deserunt, neque expedita enim reprehenderit doloribus labore quia aliquid ducimus, eum nam quibusdam libero. Quos laboriosam, a qui nostrum labore quod praesentium.</p>
    <p>Pariatur iste eos doloremque, commodi, fuga tempora deleniti illum dicta exercitationem quia nesciunt ipsum libero voluptas. Sunt maiores molestias, ut alias. Vero, consectetur animi reprehenderit perspiciatis ipsa fuga quasi ex?</p>
    </section>
   <aside>
     <ul>
       <h3>Категории</h3>
       <li><a href="#">Категория 1</a></li>
       <li><a href="#">Категория 2</a></li>
       <li><a href="#">Категория 3</a></li>
       <li><a href="#">Категория 4</a></li>
       <li><a href="#">Категория 5</a></li>
     </ul>
     <div class="advertizing">
       <img src="http://lorempixel.com/130/130/city/1" alt="" />
       <img src="http://lorempixel.com/130/130/city/7" alt="" />
       <img src="http://lorempixel.com/130/130/city/5" alt="" />
       <img src="http://lorempixel.com/130/130/city/4" alt="" />
     </div>
     <ul>
       <h3>Последние статьи</h3>
       <li><a href="#">Lorem ipsum dolor.</a></li>
       <li><a href="#">Dolore eaque, veniam.</a></li>
       <li><a href="#">Natus ducimus, tempore?</a></li>
       <li><a href="#">Vero, libero, rem.</a></li>
       <li><a href="#">Perspiciatis, vitae, temporibus.</a></li>
     </ul>
  </aside>  
</div>
<footer>Сделано на основе <a href="http://tutorialzine.com/2014/10/easiest-way-equal-height-sidebar/">статьи</a></footer>
            
          
!

CSS

            
              @import url(https://fonts.googleapis.com/css?family=Arimo:400,700,400italic&subset=latin,cyrillic);

body{
  font-family: 'Arimo', sans-serif;
  background-color:#666;
  background-image: linear-gradient(45deg, transparent,transparent 48%, rgba(255,255,255,.3) 48%, rgba(255,255,255,.3) 52%, transparent 52%);
  background-size:10px 10px;
  margin: 0;
}
header, footer {
  padding: 15px;
  text-align: center;
  background-color: #111;
  color: #fff;
}
header {box-shadow: 0 0 4px #222;}
footer {box-shadow: 0 0 4px #222}
footer a {color: #aaa;}
img {max-width: 100%;}
#wrap {
    background-color: #fff;
    display:flex;

    /* Centering the page */
    max-width:1200px;
    margin:0 auto;
}
#main, aside {
  padding: 15px;
}
#main {
    /* This makes the element grow and take all available space, not taken by the sidebar */
    flex-grow: 1;
}
aside {
    /* Give the sidebar a default width, and prevent it from shrinking */
  flex-shrink: 0;
  width: 280px;
  background-color: #ccc;
}
.advertizing {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.advertizing img {
  margin-bottom: 10px;
}
aside ul {
  list-style-type: none;
  padding-left: 0;
}
aside ul li {
  margin-bottom: 10px;
  border-bottom: 1px dotted #222;
}
aside a {
  color: #222;
  text-decoration: none;
  transition: .3s;
}
aside a:hover {padding-left: 20px;}
@media all and (max-width: 800px) {

    #page {
        flex-flow: column;
    }

    /* Make the sidebar take the entire width of the screen */

    aside {
        width:auto;
    }
  .advertizing {display: block;}

}
            
          
!

JS

            
              
            
          
!
999px

Console