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.

Quick-add: + add another resource

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.

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.

            
              <main class="grid">
  <header class="item header">
    <h1>My Website</h1>
  </header>
  <div class="articles">
    <article class="item article">
      <h2>Article 1</h2>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quam modi nihil, alias dolores autem officia debitis unde nemo vel temporibus, tempora consequatur, culpa illum ad repudiandae perferendis? Porro, voluptatibus, cupiditate!</p>
    </article>

    <article class="item article">
      <h2>Article 2</h2>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quam modi nihil, alias dolores autem officia debitis unde nemo vel temporibus, tempora consequatur, culpa illum ad repudiandae perferendis? Porro, voluptatibus, cupiditate!</p>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quam modi nihil, alias dolores autem officia debitis unde nemo vel temporibus, tempora consequatur, culpa illum ad repudiandae perferendis? Porro, voluptatibus, cupiditate!</p>
    </article>

    <article class="item article">
      <h2>Article 3</h2>

      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quam modi nihil, alias dolores autem officia debitis unde nemo vel temporibus, tempora consequatur, culpa illum ad repudiandae perferendis? Porro, voluptatibus, cupiditate!</p>
    </article>
  </div>
  
  <aside class="posts">
    <div class="item post">
      <h2>Related Posts</h2>

      <ul>
        <li>Element 1</li>
        <li>Element 2</li>
        <li>Element 3</li>
        <li>Element 4</li>
        <li>Element 5</li>
        <li>Element 6</li>
      </ul>
    </div>
    
    <div class="item post">
      <h2>More Posts</h2>
      <ul>
        <li>Element 1</li>
        <li>Element 2</li>
        <li>Element 3</li>
        <li>Element 4</li>
        <li>Element 5</li>
        <li>Element 6</li>
      </ul>
    </div>
  </aside>  
  
  <aside class="favorites">
    <div class="item favorite">
      <h2>Favorite 1</h2>
    </div>

    <div class="item favorite">
      <h2>Favorite 2</h2>
    </div>
  </aside>
  
  <footer class="item footer">
    &copy;     
  </footer>
</div>
            
          
!
            
              .grid {
  display: grid;
  grid-template-columns: 1fr 200px 200px;
  grid-gap: 20px;
  grid-template-areas: 
    "header header header"
    "articles favorites posts"
}

.footer {
  background-color: #17242D;
  grid-column-start: 1;
  grid-column-end: -1;
}

.header {
  background-color: #17242D;
  grid-area: header;
}

.articles {
  grid-area: articles;
}

.article:not(:last-child) {
  margin-bottom: 20px;
}

.posts {
  grid-area: posts;
}

.favorites {
  grid-area: favorites;
}

.post {
  background-color: #87B3D6;
  margin-bottom: 20px;
}

.favorite {
  background-color: #7CCBB0;
  margin-bottom: 20px;
}
            
          
!
            
              /*

.footer {
  grid-column-start: favorites-start;
  grid-column-end: posts-end;
}
*/
            
          
!
999px
Loading ..................

Console