Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <header>Шапка страницы</header>
<div class="container">
<div class="main-content">
<div>
<h1>Основной контент</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur consectetur enim a mi varius viverra. Quisque imperdiet nec purus in condimentum. Suspendisse laoreet, sem eu aliquam porttitor, risus augue viverra mauris, id vestibulum eros massa quis mauris. Vestibulum gravida ut nisl vitae pulvinar. Nulla volutpat magna lectus, in ornare dolor maximus sit amet. Phasellus aliquet fringilla nunc sit amet faucibus. Duis non elementum tortor.</p>
</div>
</div>
<aside>
<div>
<h2>Боковая колонка</h2>
<p>Nullam ac imperdiet mi. In efficitur iaculis erat id mattis. Nulla sit amet rutrum ante. Morbi cursus purus sit amet massa tincidunt luctus. Etiam hendrerit odio ante, vitae convallis neque lacinia et. Nam id imperdiet nisl.Mauris in vulputate ex. Sed convallis quam convallis leo pretium, eget ullamcorper lorem congue. Integer nulla tortor, lobortis ut feugiat vel, sollicitudin quis dolor. Mauris et porta ligula. Nunc porta eget ipsum in luctus. Nam vel facilisis elit. Aliquam et risus a turpis fringilla consequat. </p>
</div>          
</aside>
</div>
<footer>Подвал страницы</footer>
              
            
!

CSS

              
                body {
  margin: 0;
  background: #FAF2D6;
  color: #302E2D;
}
header {
  padding: 30px 60px;
  background: #80C8A0;
}
.container {
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.main-content {
  float: left;
  width: calc(100% - 330px);
  background: #C9CCC8;
}
aside {
  float: right;
  width: 300px;
  background: #EC5A45;
}
.main-content:after, aside:after {
  content: "";
  position: absolute;
  height: 100%;
}
.main-content:after {
  left: 30px;
  right: 360px;
  background: #C9CCC8;
}
aside:after {
  right: 30px;
  width: 300px;
  background: #EC5A45;
}
.main-content div, aside  div {
  padding: 30px 30px 0 30px;
}
footer {
  margin-top: 30px;
  padding: 30px 60px;
  background: #80C8A0;
}
.container:after{content:"";display:table;clear:both}
@media (max-width: 860px) {
  .container {
    overflow: visible;
    }
  .main-content {
    float: none;
    margin-bottom: 30px;
    width: 100%;
    }
  aside {
    float: none;
    width: 100%;
    }
  .main-content div, aside  div {
  padding: 30px;
}
  .main-content:after, aside:after {
    display: none;
    }
  footer {
    margin-top: 0;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console