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

            
              <!--
  Please enable "Experimental Web Platform Features" in chrome for the css grid layout module to actually work.
  See more here: https://drafts.csswg.org/css-grid-1/
-->
<div class="page">
  <h1 class="page-title">The Collection</h1>
  <div class="grid">
    <div class="item small-ad">
      <a class="link-block" href="#">
        Classic <span class="serif">Holiday</span> Collections
      </a>
    </div>
    <div class="item article-header">
      <h2 class="title-block">Art. Love. Color</h2>
      <h3 class="title-tag serif">Master Class</h3>
    </div>
    <div class="item article-body">
      <p class="text serif">
        Inspired by painter Yago Hortal’s one-of-a-kind, vivid artwork, this set features 40 shades of color for cheeks and eyes. The panels easily pop in and out, making it perfectly portable for holiday trips. Smashbox partnered with breakthrough artist Yago
        Hortal to create these mega-vibrant, limited-edition kits featuring all of their bestsellers in a range of shades—from bold pops of color to always-flattering neutrals. </p>
      <a href="" class="btn">More details</a>
    </div>
    <div class="item bg-block">
      <div class="bg-block__wrapper">
        <h2 class="title-small">Featured Sale</h2>
        <p class="text-block">
          All
          <br/> Skin Care</br> Products <span class="block">BOGO Free</span>
        </p>
      </div>
    </div>
    <div class="item community">
      <div class="community-header">
        <h2 class="title-block-small">Our <span class="serif block italic">Community</span></h2>
        <h3 class="title-block-small">Featuring: You!</h3>
      </div>
      <div class="img-grid">
        <a href=""><img src="http://placehold.it/150x150" /></a>
        <a href=""><img src="http://placehold.it/150x150" /></a>
        <a href=""><img src="http://placehold.it/150x150" /></a>
        <a href=""><img src="http://placehold.it/150x150" /></a>
      </div>
    </div>
    <div class="item footer">
      <h2 class="title-small">Shop By</h2>
      <ul class="nav">
        <li><a href="">Makeup</a></li>
        <li><a href="">Skincare</a></li>
        <li><a href="">Fragrance</a></li>
        <li><a href="">Bath & Body</a></li>
        <li><a href="">Nails</a></li>
        <li><a href="">Hair</a></li>
        <li><a href="">Tools & Brushes</a></li>
        <li><a href="">Men</a></li>
        <li><a href="">Gifts</a></li>
        <li><a href="">Sales</a></li>
        <li><a href="">Brands</a></li>
      </ul>
    </div>

  </div>

</div>
            
          
!
            
              $margin: 20px;
$bp-small: 750px;
$bp-med: 840px;
$bp-large: 1200px;

.item {
  margin-bottom: 20px;
}
@media (min-width: 750px) {
  .grid {
    grid-template-rows: auto;
    grid-template-columns: repeat(5, 20%);
    display: grid;
  }
  .small-ad, .bg-block, .community, .footer {
    grid-column: 1 / 6;
  }
  .small-ad {
    grid-row: 1 / 2;
  }
  .article-header, .article-body {
    grid-row: 2 / 3;
  }
  .article-header {
    grid-column: 1 / 3;
  }
  .article-body {
    grid-column: 3 / 6;
    align-self: center;
    padding-left: 20px;
  }
  .bg-block {
    grid-row: 4 / 5;
  }
  .community {
    grid-row: 5 / 6;
  }
  .footer {
    grid-row: 6 / 7;
  }
}
@media (min-width: $bp-med) {
  .grid {
    grid-template-columns: repeat(10, 10%);
  }
  .small-ad {
    grid-column: 1/3;
  }
  .article-header {
    grid-row: 1/2;
    grid-column: 3/11;
    align-self: flex-end;
  }
  .article-body {
    grid-row: 2/3;
    grid-column: 8/11;
  }
  .bg-block {
    grid-row: 2/3;
    grid-column: 1/8;
  }
  .community {
    grid-row: 3/4;
    grid-column: 1/11;
    display: flex;
  }
  .community-header {
    text-align: left;
    align-self: center;
  }
  .footer {
    grid-row: 4/5;
    grid-column: 1/11;
  }
}
@media (min-width: $bp-large) {
  .small-ad {
    grid-row: 1/2;
    grid-column: 1/4;
  }
  .article-header {
    grid-row: 1/2;
    grid-column: 4/11;
  }
  .article-body {
    grid-row: 2/3;
    grid-column: 9/11;
    align-self: flex-start;
  }
  .bg-block {
    grid-row: 2/3;
    grid-column: 3/9;
  }
  .footer {
    grid-row: 2/4;
    grid-column: 1/3;
  }
  .community {
    grid-row: 3/4;
    grid-column: 3/11;
    padding-left: 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.
Loading ..................

Console