Pen Settings



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


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


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.


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.


                <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="" 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>
       <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>
     <div class="advertizing">
       <img src="" alt="" />
       <img src="" alt="" />
       <img src="" alt="" />
       <img src="" alt="" />
       <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>
<footer>Сделано на основе <a href="">статьи</a></footer>


                @import url(,700,400italic&subset=latin,cyrillic);

  font-family: 'Arimo', sans-serif;
  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;

    /* Centering the page */
    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 {
  .advertizing {display: block;}