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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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.


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.

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>Шапка страницы</header>
<div class="container">
<div class="main">
<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>
<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>
<footer>Подвал страницы</footer>


body {
  margin: 0;
  background: #FAF2D6;
  color: #302E2D;
header {
  padding: 30px 60px;
  background: #80C8A0;
.container {
  padding: 30px;
.container:after {
  display: table;
  clear: both;
.main{float:left;width:calc(100% - 330px);background: #EC5A45;
  padding: 30px;}
aside {width: 300px;float:right;background: #EC5A45; padding: 30px;}
footer {
  padding: 30px 60px;
  background: #80C8A0;
@media (max-width: 860px) {
  .main, aside {
   min-height: auto !important;
  .main {margin-bottom:30px}


                jQuery(document).ready(function($) {
  var content = $('.main');
  var sidebar = $('aside');
  var getContentHeight = content.outerHeight();
  var getSidebarHeight = sidebar.outerHeight();
  if (getContentHeight > getSidebarHeight) {
    sidebar.css('min-height', getContentHeight);
  if (getSidebarHeight > getContentHeight) {
    content.css('min-height', getSidebarHeight);