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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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.

            
              <div class="page">
  <div class="header">
    <div class="header__titlebar"></div>
  </div>

  <div class="wrapper">
    <div class="sidebar"></div>

    <div class="main">
      <div class="main__stream">
        <div class="main__stream__content">I have removed many components on this page, such as the buttons on the header, the title, the menus of the sidebar, the other two streams, and all of the items within the remaining stream (except this one). This is to illustrate a simple base scenario.</div>
      </div>
  </div>
</div>
            
          
!
            
              $menu-color: #333;
$title-color: #8DC63F;
$border-radius: 10px;
$default-spacing: 10px;

.page {
  // notable properties
  display: flex;
  flex-direction: column;
  
  // other styling properties
  width: 100%;
}

.header {
  // notable properties
  height: 50px;
  flex-shrink: 0;
  
  // other styling properties
  width: 100%;
  background-color: white;
  display: flex;
  
  &__titlebar {
    // other styling properties
    width: 100%;
    height: 100%;
    border-radius: $border-radius;
    background-color: $title-color;
  }
}

.wrapper {
  // notable properties
  display: flex;
  flex-direction: row;
  height: 100%;
  
  // other styling properties
  background-color: #FFF;
  padding-top: $default-spacing;
}

.sidebar {
  // notable properties
  width: 20%;
  flex-shrink: 0;
  
  // other styling properties
  background-color: $menu-color;
  border-radius: $border-radius;
}

.main {
  // notable properties
  width: 100%;
  
  // other styling properties
  height: 100%;
  display: flex;
  flex-direction: row;
  
  &__stream {
    // other styling properties
    width: 100%;
    height: 100%;
    border: 1px solid white;
    padding-left: $default-spacing;

    &__content {
      // other styling properties
      color: #333;
      font-family: sans-serif;
      font-size: 14px;
      line-height: 1.25;
      padding: $default-spacing;
      background-color: #EEE;
      border-radius: $border-radius;
      margin-bottom: $default-spacing;
    }
  }
}
            
          
!
999px
Loading ..................

Console