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.

            
              <link rel="stylesheet" href="style.css">

<div class="container">
  <header>
    <h1>Lorem ipsum</h1>
  </header>

  <nav>
    <ul>
      <li><a href="#">list1 lorem</a></li>
      <li><a href="#">list2 lorem</a></li>
      <li><a href="#">list3 lorem</a></li>
      <li><a href="#">list4 lorem</a></li>
      <li><a href="#">list5 lorem</a></li>
    </ul>
  </nav>

  <aside>
    <div class="side-profile">
      <h3>Profile</h3>
      Lorem ipsum dolor sit amet, consectetur adipisicing elit. Vel molestias, pariatur vitae error tempora nostrum nisi adipisci! Officia iste consectetur quam nesciunt, earum architecto consequatur quisquam tempore animi, ea dolore?
    </div>

    <div class="side-labels">
      <h3>Labels</h3>
      <ul>
        <li><a href="#">label01</a></li>
        <li><a href="#">label02</a></li>
        <li><a href="#">label03</a></li>
        <li><a href="#">label04</a></li>
        <li><a href="#">label05</a></li>
        <li><a href="#">label06</a></li>
      </ul>
    </div>
  </aside>

  <main>
    <article>
      <h2>Article1</h2>
      Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rem molestias natus facere consequatur facilis, dolore deleniti aliquid consectetur voluptate accusantium expedita dolor et nisi cupiditate eius nulla ut praesentium possimus!
      Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aut vel reprehenderit natus fuga illo dicta sapiente totam, quidem explicabo vero accusamus quibusdam neque eveniet vitae asperiores id magnam ut, repudiandae nisi cupiditate. Commodi fuga ea quam, fugit cumque atque excepturi?
      Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aut vel reprehenderit natus fuga illo dicta sapiente totam, quidem explicabo vero accusamus quibusdam neque eveniet vitae asperiores id magnam ut, repudiandae nisi cupiditate. Commodi fuga ea quam, fugit cumque atque excepturi?
      Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aut vel reprehenderit natus fuga illo dicta sapiente totam, quidem explicabo vero accusamus quibusdam neque eveniet vitae asperiores id magnam ut, repudiandae nisi cupiditate. Commodi fuga ea quam, fugit cumque atque excepturi?
      Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aut vel reprehenderit natus fuga illo dicta sapiente totam, quidem explicabo vero accusamus quibusdam neque eveniet vitae asperiores id magnam ut, repudiandae nisi cupiditate. Commodi fuga ea quam, fugit cumque atque excepturi?
    </article>
    <article>
      <h2>Article2</h2>
      Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rem molestias natus facere consequatur facilis, dolore deleniti aliquid consectetur voluptate accusantium expedita dolor et nisi cupiditate eius nulla ut praesentium possimus!
      Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aut vel reprehenderit natus fuga illo dicta sapiente totam, quidem explicabo vero accusamus quibusdam neque eveniet vitae asperiores id magnam ut, repudiandae nisi cupiditate. Commodi fuga ea quam, fugit cumque atque excepturi?
      Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aut vel reprehenderit natus fuga illo dicta sapiente totam, quidem explicabo vero accusamus quibusdam neque eveniet vitae asperiores id magnam ut, repudiandae nisi cupiditate. Commodi fuga ea quam, fugit cumque atque excepturi?
      Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aut vel reprehenderit natus fuga illo dicta sapiente totam, quidem explicabo vero accusamus quibusdam neque eveniet vitae asperiores id magnam ut, repudiandae nisi cupiditate. Commodi fuga ea quam, fugit cumque atque excepturi?
      Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aut vel reprehenderit natus fuga illo dicta sapiente totam, quidem explicabo vero accusamus quibusdam neque eveniet vitae asperiores id magnam ut, repudiandae nisi cupiditate. Commodi fuga ea quam, fugit cumque atque excepturi?
    </article>
    <article>
      <h2>Article3</h2>
      Lorem ipsum dolor sit amet, consectetur adipisicing elit. Rem molestias natus facere consequatur facilis, dolore deleniti aliquid consectetur voluptate accusantium expedita dolor et nisi cupiditate eius nulla ut praesentium possimus!
      Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aut vel reprehenderit natus fuga illo dicta sapiente totam, quidem explicabo vero accusamus quibusdam neque eveniet vitae asperiores id magnam ut, repudiandae nisi cupiditate. Commodi fuga ea quam, fugit cumque atque excepturi?
      Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aut vel reprehenderit natus fuga illo dicta sapiente totam, quidem explicabo vero accusamus quibusdam neque eveniet vitae asperiores id magnam ut, repudiandae nisi cupiditate. Commodi fuga ea quam, fugit cumque atque excepturi?
      Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aut vel reprehenderit natus fuga illo dicta sapiente totam, quidem explicabo vero accusamus quibusdam neque eveniet vitae asperiores id magnam ut, repudiandae nisi cupiditate. Commodi fuga ea quam, fugit cumque atque excepturi?
      Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aut vel reprehenderit natus fuga illo dicta sapiente totam, quidem explicabo vero accusamus quibusdam neque eveniet vitae asperiores id magnam ut, repudiandae nisi cupiditate. Commodi fuga ea quam, fugit cumque atque excepturi?
    </article>
  </main>

  <footer></footer>
</div>
            
          
!
            
              @import url('https://fonts.googleapis.com/css?family=Acme');
@import url('https://fonts.googleapis.com/css?family=Play');

*, *:before, *:after {
  box-sizing: border-box;
}
a:hover {
  color: white;
  background: #f7278f;
}
html {
  font-family: sans-serif;
}
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
}
h1 { font-size: 1.8rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.2rem; }

@mixin box() {
  border: dashed 2px #242424;
  padding: 5px;

  // $content: "#{&}";
  // position: relative;
  // &:after {
  //   position: absolute;
  //   right: 5px;
  //   bottom: 0;
  //   content: $content;
  //   color: red;
  // }
}

.container {
  @include box();

  // |1-1|1-2| header
  // |2-1|2-2| nav
  // |3-1|3-2| side, main
  // |4-1|4-2| footer
  grid-template-rows: 40px 50px 1fr 40px;
  grid-template-columns: 300px 1fr;

  > header {
    @include box();
    grid-row: 1;
    grid-column: 1 / span 2;

    > h1 {
      font-family: 'Play', sans-serif;
      display: flex;
      align-items: center;
      text-align: center;

      &:before,
      &:after {
        content: "";
        display: inline;
        flex-grow: 1;
      }
      &:before {
        border-bottom: 20px solid;
        border-right: 40px solid transparent;
        margin-right: 2rem;
      }
      &:after {
        border-bottom: 20px solid;
        border-left: 40px solid transparent;
        margin-left: 2rem;
      }
    }
  }
  > nav {
    @include box();
    grid-row: 2;
    grid-column: 1 / span 2;

    > ul {
      grid-template-columns: auto auto auto auto auto;
      text-align: center;
      list-style-type: none;
      margin: 0;
      padding: 0;

      > li {

        > a {
          @include box();
          display: block;
          text-decoration: none;
        }
      }
    }
  }
  > aside {
    @include box();
    grid-row: 3;
    grid-column: 1;
    > .side-profile {
      margin-bottom: 20px;
    }
    > .side-labels {
      margin-bottom: 20px;

      > ul {
        margin: 0;
        padding: 0;
        list-style-type: none;
        > li {
          padding-bottom: 1px;
          > a {
            display: block;
            // font-family: 'Acme';
            text-decoration: none;
          }
        }
      }
    }
  }
  > main {
    @include box();
    grid-row: 3;
    grid-column: 2;
    font-family: 'Acme';

    > article {
      margin-bottom: 20px;
    }
  }
  > footer {
    @include box();
    grid-row: 4;
    grid-column: 1 / span 2;

    border-bottom: 20px solid;
  }
}

@media screen and (min-width: 700px) {
  .container {
    display: grid;

     > nav {
      > ul {
        display: grid;
        // justify-content: space-around;
      }
    }
  }
}

            
          
!
999px
Loading ..................

Console