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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <header class="middle">
  <div id="icon">
     <a href="#">
       <img src="http://logok.org/wp-content/uploads/2015/09/Google-logo-2015-G-icon.png" alt="" />
    </a>
  </div><div id="search" class="middle">
    <input type="text" placeholder="Search"/>
    <span id="submit" class="middle">
      <i class="material-icons">&#xE8B6;</i><span class="taille"></span>
    </span><span class="taille"></span>
  </div><div id="right" class="middle">
    <span class="middle">
      <i class="material-icons">&#xE5C3;</i><i class="material-icons">&#xE7F4;</i><div id="avatar">
        <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/278985/profile/profile-80.jpg" alt="avatar" />
      </div></span><span class="taille"></span>
  </div>
</header>
<div id="content">
  <div class="element" id="list">
    <div class="options middle">
      <div id="title">
        Gmail
      </div><div>
        <input type="checkbox" id="selectall" class="none" />
        <label for="selectall"></label>
      </div><div>
      <i class="material-icons">&#xE5D5;</i>
      </div><div class="middle"><span></span>More<span><i class="material-icons">&#xE5C5;</i></span></div>
    </div>
  </div>
  <div id="left" class="element">
    <ul>
      <li class="active">Inbox</li>
      <li>Starred</li>
      <li>Sent Mail</li>
      <li><b>Drafts (1)</b></li>
      <li>More</li>
    </ul>
  </div><div id="mails">
    <div class="loremhidden"><!-- this is an hidden part. it is to detect leftovers content -->Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc blandit ex ultricies nisi tempus bibendum a congue quam. Fusce et pretium nibh, a semper enim. Proin accumsan sollicitudin ante et faucibus. Aliquam lacinia ultrices leo vel accumsan. In tincidunt fringilla tortor, ut ultricies odio laoreet in. Nullam consequat placerat turpis ac hendrerit. Curabitur lacinia euismod posuere. Suspendisse ultricies urna in leo pellentesque, sit amet consequat ante hendrerit. Etiam semper pellentesque risus. Praesent vitae tincidunt nunc.</div>
    <div id="nav" class="element">
      <div class="middle active">
        <i class="material-icons">&#xE156;</i><span>Primary</span><span class="taille"></span>
      </div><div class="middle">
        <i class="material-icons">&#xE8D3;</i><span>Social</span><span class="taille"></span>
      </div><div class="middle">
        <i class="material-icons">&#xE54E;</i><span>Promotions</span><span class="taille"></span>
      </div>
    </div>
    <div class="mail element middle notread">
      <div class="leftpart middle"><div class="thumb"><img src="http://i.pravatar.cc/150?img=1" alt="" /></div>
        <span><b>Mary Jones</b></span></div>
      <div class="centerpart middle">
        <div><b>Weekly session</b> - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris velit eros, tempor at lectus nec, malesuada semper enim. Vivamus elementum diam sed metus fringilla condimentum. Vivamus condimentum nec justo ac dignissim. Sed vitae consectetur eros. Pellentesque pretium leo ut turpis luctus, id congue nisi aliquam. Curabitur efficitur dolor sed dictum dapibus. Cras vitae viverra ipsum, non sagittis lacus. Suspendisse commodo dolor ac dapibus tempor. Vestibulum sagittis neque ut finibus mollis. Nam venenatis ullamcorper arcu, id laoreet libero malesuada non.</div><span class="taille"></span>
      </div>
      <span class="date middle"><span>Nov 3</span><span class="taille"></span></span>
    </div>
    <div class="mail element middle">
      <div class="leftpart middle"><div class="thumb"><img src="http://i.pravatar.cc/150?img=3" alt="" /></div>
        <span>Bob Dylan</span></div>
      <div class="centerpart middle">
        <div><span>Next party ?</span> - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris velit eros, tempor at lectus nec, malesuada semper enim. Vivamus elementum diam sed metus fringilla condimentum. Vivamus condimentum nec justo ac dignissim. Sed vitae consectetur eros. Pellentesque pretium leo ut turpis luctus, id congue nisi aliquam. Curabitur efficitur dolor sed dictum dapibus. Cras vitae viverra ipsum, non sagittis lacus. Suspendisse commodo dolor ac dapibus tempor. Vestibulum sagittis neque ut finibus mollis. Nam venenatis ullamcorper arcu, id laoreet libero malesuada non.</div><span class="taille"></span>
      </div>
      <span class="date middle"><span>Nov 3</span><span class="taille"></span></span>
    </div>
    <div class="mail element middle">
      <div class="leftpart middle"><div class="thumb">M</div>
        <span>Mylan Sware</span></div>
      <div class="centerpart middle">
        <div><span>What you asked me</span> - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris velit eros, tempor at lectus nec, malesuada semper enim. Vivamus elementum diam sed metus fringilla condimentum. Vivamus condimentum nec justo ac dignissim. Sed vitae consectetur eros. Pellentesque pretium leo ut turpis luctus, id congue nisi aliquam. Curabitur efficitur dolor sed dictum dapibus. Cras vitae viverra ipsum, non sagittis lacus. Suspendisse commodo dolor ac dapibus tempor. Vestibulum sagittis neque ut finibus mollis. Nam venenatis ullamcorper arcu, id laoreet libero malesuada non.</div><span class="taille"></span>
      </div>
      <span class="date middle"><span>Nov 3</span><span class="taille"></span></span>
    </div>
    <div class="mail element middle">
      <div class="leftpart middle"><div class="thumb"><img src="http://i.pravatar.cc/150?img=5" alt="" /></div>
        <span>Suzanne Carol</span></div>
      <div class="centerpart middle">
        <div><span>You miss me</span> - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris velit eros, tempor at lectus nec, malesuada semper enim. Vivamus elementum diam sed metus fringilla condimentum. Vivamus condimentum nec justo ac dignissim. Sed vitae consectetur eros. Pellentesque pretium leo ut turpis luctus, id congue nisi aliquam. Curabitur efficitur dolor sed dictum dapibus. Cras vitae viverra ipsum, non sagittis lacus. Suspendisse commodo dolor ac dapibus tempor. Vestibulum sagittis neque ut finibus mollis. Nam venenatis ullamcorper arcu, id laoreet libero malesuada non.</div><span class="taille"></span>
      </div>
      <span class="date middle"><span>Nov 3</span><span class="taille"></span></span>
    </div>
  </div>
</div>
            
          
!
            
              body {
  background: #dad7d7;
  background-image: url('http://wallup.net/wp-content/uploads/2015/12/220188-nature-landscape-fall-path-forest-hill-trees-red.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
header {
  height: 60px;
  position: relative;
  background-color: #b53120;
  color: #fff;
-moz-box-shadow: 0px -2px 5px 0px rgba(0, 0, 0, 0.4);
-webkit-box-shadow: 0px -2px 5px 0px rgba(0, 0, 0, 0.4);
-o-box-shadow: 0px -2px 5px 0px rgba(0, 0, 0, 0.4);
box-shadow: 0px -2px 5px 0px rgba(0, 0, 0, 0.4);
filter:progid:DXImageTransform.Microsoft.Shadow(color=#00000033), Direction=90, Strength=5);
}
header #icon {
  height: 100%;
  background: #fafafa;
  width: 80px;
}
header #search {
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  width: 30%;
  margin-left: 150px;
  position: relative;
  padding-right: 54px;
}
header #search input {
  padding-left: 15px;
  font-size: inherit;
  width: 100%;
  height: 100%;
  border: 0px none;
  background: none;
  color: inherit;
}
header #search #submit {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  padding: 0 15px;
}
header #right {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  padding: 0 30px;
  background-color: #fff;
  color: #242424;
}
header #right i {
  padding: 0 20px 0 0;
}
header #right #avatar {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #2f2b2b;
}
#content {
  padding: 10px;
}
#content #left {
  width: 210px;
  float: left;
  padding: 0;
  background: none;
}
#left ul li {
  padding: 6px 20px;
  cursor: pointer;
  background: rgba(255,255,255,.6);
}
#left li b {
  font-weight: 600;
}
#content #mails {
  overflow: hidden;
  padding: 0 0 0 10px;
}
.loremhidden {
  height: 0px;
  overflow: hidden;
}
#mails #nav {
  padding: 0;
  color: #242424;
  background: none;
}
#nav div {
  height: 100%;
  padding: 6px 10px;
  display: inline-block;
  width: 240px;
  max-width: 33.33%;
  cursor: pointer;
  background: rgba(255,255,255,.6);
}
#left ul li.active, #nav div.active, #left ul li:hover {
  background: #fff;
}
#nav div i {
  margin-right: 10px;
}
.cb {
  background: red;
}
#list {
  padding: 5px 20px;
  margin-bottom: 10px;
}
#list #title {
  width: 210px;
  color: #b53120;
  font-weight: 600;
  margin-right: 0;
}
.options label {
  height: 20px;
  width: 20px;
  background: #ccc;
  border-radius: 3px;
  display: block;
}
.options input:checked + label {
  background: #b53120;
}
.options div {
  margin-right: 20px;
  cursor: pointer;
}
.options div i {
  display: block;
}
#mails .mail {
  background: rgba(255,255,255,.6);
  padding: 7px 20px;
}
#mails .mail.notread {
  background: #fff;
  border-bottom: 1px solid #c9c9c9;
}
.mail .thumb {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #ccc;
  margin-right: 10px;
  text-align: center;
  line-height: 40px;
  color: #fff;
}
.mail .leftpart {
  width: 220px;
}
.mail .centerpart {
  overflow: hidden;
  width: 100%;
  padding-left: 220px;
  padding-right: 80px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.mail .centerpart div {
  text-overflow: ellipsis;
  overflow: hidden;
  height: 20px;
  line-height: 20px;
  color: #666;
  word-break: break-all;
}
.mail .centerpart div b, .mail .centerpart div span {
  color: #000;
}
.mail .date {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  padding-right: 20px;
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console