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.

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

              
                <div class="container">
  
  <header class="nav">
  <nav class="nav-left"> 
    <logo class="logo">Logo
    </logo>
    <search class="search">Search
    </search>
    <right-nav class="nav-right">
    Default Navigation
    </right-nav>
    <right-sm-nav class="nav-sm-right">
    Min Navigation 
    </right-sm-nav>
  </nav>
  </header>
 <sticky-nav class="nav-mobile-web">
   Mobile Web Navigation
  </sticky-nav>
  <panel class="left">
    Left Panel
  </panel>
  <main class="main">
    <share class="share">
    Share
    </share>
    <item class="feed">
     Feed Item
      <action class="feed-reaction">
        Feed Reaction
      </action>
      <action class="feed-actionbar">
        Feed Actionbar
      </action>
      
    </item>
    <item class="feed">
     Feed Item
      <action class="feed-reaction">
        Feed Reaction
      </action>
    </item>
    <item class="feed">
     Feed Item
      <action class="feed-reaction">
        Feed Reaction
      </action>
    </item>
  </main>
  
  <aside class="right">
    Right
  </aside>
  
  <footer class="footer">
    Footer
  </footer>
</div>
              
            
!

CSS

              
                
.container {
  margin: 0 auto;
  display: -ms-grid;
  display: grid;
  grid-template-columns: 268px auto 348px;
  grid-column-gap: 32px;
  grid-auto-rows: minmax(0px, auto);
  max-width: 2560px; /* imac 5k, chromebox 30 */
  min-width: 360px;
}

.nav {
  grid-column: 1/4;
  grid-row: 1/2;
  background: #fff;
  max-height: 50px;
  border-bottom: 1px solid #E9E9E9;
  margin-bottom: 12px;
  overflow: auto;
}
.nav-left {
  margin-left:left;
}
.nav-right {
  float:right;
  width: 640px;
  height: 50px;
  background-color:rgba(100, 100, 100, 1.0);
}
.nav-sm-right {
  float:right;
  right:0px;
  width:360px;
  height: 50px;
  background-color:rgba(100, 100, 100, 1.0);
  display: none;
}
.nav-mobile-web {
  position: fixed; 
  bottom:0px;
  width: 100%;
  height: 50px;
  background-color:rgba(100, 100, 100, 1.0);
  display:none;
}
.logo {
  float: left;
  width: 150px;
  height: 50px;
  color: white;
  background-color:rgba(3, 99, 205, 1.0);
}
.share {
  background-color:rgba(255, 255, 255, 0.5);
  width: 100%;
  margin-bottom: 16px;
  height: 100px;
  float: left;
}
.search {
  border: 1px solid;
  width: 10%;
  padding: 8px;
  margin-left: 12px;
  margin-top: 6px;
  float:left;
  vertical-align: middle;
}
.left {
  grid-column: 1;
  grid-row: 2 / 4;
  background-color:rgba(254, 211, 189, 0.5);
  height:100%;
}

.main {
  grid-column: 2;
  grid-row: 2 / 4;
  grid-row-gap: 20px;
  background-color:rgba(191, 243, 255, 0.5);
  min-width: 375px;
}
.feed {
  grid-column: 1/4;
  grid-row: 1 / 4;
  background-color:rgba(255, 255, 255, 0.5);
  width: 100%;
  margin-bottom: 16px;
  height: 250px;
  float: left;
  left: 30px;
  -webkit-box-shadow:inset 0px 0px 0px 1px #ddd;
    -moz-box-shadow:inset 0px 0px 0px 1px #ddd;
    box-shadow:inset 0px 0px 0px 1px #ddd;
  
}
.feed-reaction {
 float:right;
 margin-right:0px;
 clear:both;
 height:100%;
 width: 150px;
 background-color:rgba(50, 50, 50, 0.5);
}
  .feed-actionbar {
display:none;   
}
.right {
  grid-column: 3;
  grid-row: 2 / 4;
  background-color:rgba(254, 211, 189, 0.5);
  height: 100%;
}

.footer {
  grid-column: 1/4;
  grid-row: 4;
   max-height: 50px;
  border-top: 1px solid #E9E9E9;
  margin-bottom: 12px;
  width: 100%;
}
@media only screen and (max-width:1440px) {
  /* For large desktop */
  .container {
    width:100%;
    grid-column-gap: 24px;
  }
}
@media only screen and (max-width:855px) {
  /* For tablet */
  .right {
    display: none;
  } 
  .container {
    grid-template-columns: 268px auto 0px;
    grid-column-gap: 16px;
  }
  .nav-right {
    display: none;
  }
  .nav-sm-right {
    display: block;
  }
.main {
  grid-column: 2;
  grid-row: 2 / 4;
  grid-row-gap: 20px;
  background-color:rgba(191, 243, 255, 0.5);
  min-width: 360px;
}
  .feed-reaction {
 float:right;
 margin-right:0px;
 clear:both;
 height:100%;
 width: 64px;
 background-color:rgba(50, 50, 50, 0.5);
}
}
@media only screen and (max-width:540px) {
  /* For medium mobile and small tablet */
  .left {
    display: none;
  }
  .container {
      grid-template-columns: 0px auto 0px;
    grid-column-gap: 0px;
  }
  .nav-sm-right {
    display: none;
  }
  .nav-mobile-web {
    display:block;
  }
  .logo {
    width: 40px;
  }
  .search {
    width: 80%;
  }
}
body {
    display: block;
    margin: 0px;
}

@media only screen and (max-width:375px) {
  /* For small mobile */
  .search {
    margin-top:4px;
    width: 32px;
    height:24px;
  }
  .feed-reaction {
    display: none;
  }
  .feed-actionbar {
display:block;   
 width: 100%;
    height: 48dp;
    background-color:rgba(50, 50, 50, 0.5); bottom:0;
    float:left;
    
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console