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.

            
                <header>
  </header>
  <main>
    <h3>Page Heading</h3>
    <div class="spacer-sm"></div>
    <div class="wrapper members">
      <div class="spacer spacer1a"></div>
      <div class="member-img img1"></div>
        <div class="member-bio bio1"></div>
        <div class="member-item-social social1"></div>
      <div class="spacer spacer1b"></div>
      <div class="spacer spacer2a"></div>
      <div class="member-img img2"></div>
        <div class="member-bio bio2"></div>
        <div class="member-item-social social2"></div>
      <div class="spacer spacer2b"></div>
      <div class="spacer spacer3a"></div>
      <div class="member-img img3"></div>
        <div class="member-bio bio3"></div>
        <div class="member-item-social social3"></div>
      <div class="spacer spacer3b"></div>
      <div class="spacer spacer4a"></div>
      <div class="member-img img4"></div>
        <div class="member-bio bio4"></div>
        <div class="member-item-social social4"></div>
      <div class="spacer spacer4b"></div>
      <div class="spacer spacer5a"></div>
      <div class="member-img img5"></div>
        <div class="member-bio bio5"></div>
        <div class="member-item-social social5"></div>
      <div class="spacer spacer5b"></div>
      <div class="spacer spacer6a"></div>
      <div class="member-img img6"></div>
        <div class="member-bio bio6"></div>
        <div class="member-item-social social6"></div>
      <div class="spacer spacer6b"></div>
    </div>
    <div class="spacer-sm"></div>
  </main>
  <footer>
  </footer>
            
          
!
            
                  /* global */
    * {
      margin: 0;
      padding: 0;
    }

    .wrapper {
      display: grid;
      grid-row-gap: 1em;
    }

    .spacer-sm {
      height: 25px;
    }

    /* nav */
    header {
      background-color: #f4cafd;
      width: 100%;
      height: 70px;
    }

    h3 {
      margin-left: 20px;
    }

    /* body */
    .members {
      width: 100%;
      margin-left: 20px;
    }

    /*.member-flex-section {
      margin: 10px 0;
    }*/

    .member-img {
      display: none;
    }

    .member-bio {
      width: 270px;
      height: 180px;
      background-color: #0c8990;
    }

    .member-item-social {
      width: 270px;
      height: 90px;
      background-color: #9dcfd2;
    }

    /* footer */
    footer {
      width: 100%;
      height: 300px;
      background-color: #ffe4fb;
    }

    @media (min-width: 585px) {
      .wrapper {
        /* col widths need factor in 15px @ 3 between columns */
        grid-template-columns: calc((100% - 540px - 15px * 3)/2) 270px 270px calc((100% - 540px - 15px * 3)/2); /*repeat(2, 50%);*/
        grid-template-rows: repeat(180px, 12);
        align-items: stretch;
        grid-column-gap: 15px;
      }

      h3 {
        text-align: center;
        margin-left: 0;
      }

      .members {
        margin-left: 0;
      }

      /*.member-flex-section {
        width: 100%;
        display: grid;
      }*/

      .member-img {
        display: block;
        width: 270px;
        height: 270px;
        background-color: #ee5615;
      }

      .member-grid-text {
        display: grid;
        /*width: 270px;*/
      }

      .spacer1a,
      .spacer2a,
      .spacer3a,
      .spacer4a,
      .spacer5a,
      .spacer6a {
        grid-column-start: 1;
        grid-column-end: 2;
      }

      .spacer1a,
      .img1,
      .spacer1b {
        grid-row-start: 1;
        grid-row-end: 3;
      }

      .spacer2a,
      .img2,
      .spacer2b {
        grid-row-start: 3;
        grid-row-end: 5;
      }

      .spacer3a,
      .img3,
      .spacer3b {
        grid-row-start: 5;
        grid-row-end: 7;
      }

      .spacer4a,
      .img4,
      .spacer4b {
        grid-row-start: 7;
        grid-row-end: 9;
      }

      .spacer5a,
      .img5,
      .spacer5b {
        grid-row-start: 9;
        grid-row-end: 11;
      }

      .spacer6a,
      .img6,
      .spacer6b {
        grid-row-start: 11;
        grid-row-end: 13;
      }

      .img1,
      .img2,
      .img3,
      .img4,
      .img5,
      .img6 {
        grid-column-start: 2;
        grid-column-end: 3;
      }

      .bio1,
      .bio2,
      .bio3,
      .bio4,
      .bio5,
      .bio6 {
        grid-column-start: 3;
        grid-column-end: 4;
        align-self: start;
      }

      .bio1 {
        grid-row-start: 1;
        grid-row-end: 2;
      }

      .bio2 {
        grid-row-start: 3;
        grid-row-end: 4;
      }

      .bio3 {
        grid-row-start: 5;
        grid-row-end: 6;
      }

      .bio4 {
        grid-row-start: 7;
        grid-row-end: 8;
      }

      .bio5 {
        grid-row-start: 9;
        grid-row-end: 10;
      }

      .bio6 {
        grid-row-start: 11;
        grid-row-end: 12;
      }

      .social1,
      .social2,
      .social3,
      .social4,
      .social5,
      .social6 {
        grid-column-start: 3;
        grid-column-end: 4;
        align-self: end;
      }

      .social1 {
        grid-row-start: 2;
        grid-row-end: 3;
      }

      .social2 {
        grid-row-start: 4;
        grid-row-end: 5;
      }

      .social3 {
        grid-row-start: 6;
        grid-row-end: 7;
      }

      .social4 {
        grid-row-start: 8;
        grid-row-end: 9;
      }

      .social5 {
        grid-row-start: 10;
        grid-row-end: 11;
      }

      .social6 {
        grid-row-start: 12;
        grid-row-end: 13;
      }

      .spacer1b,
      .spacer2b,
      .spacer3b,
      .spacer4b,
      .spacer5b,
      .spacer6b {
        grid-column-start: 5;
        grid-column-end: 6;
      }

    }

    @media (min-width: 960px) {
      .wrapper {
        margin: 0 auto;
        grid-template-columns: calc((100% - (270px * 3) - (15px * 4))/2) 270px 270px 270px calc((100% - (270px * 3) - (15px * 4))/2);
        grid-template-rows: repeat(145px, 12);
        grid-auto-rows: minmax(145px, auto);
        grid-column-gap: 15px;
      }

      .social1,
      .social2,
      .social3,
      .social4,
      .social5,
      .social6 {
        grid-column-start: 4;
        grid-column-end: 5;
        align-self: end;
      }

      .social1 {
        grid-row-start: 1;
        grid-row-end: 2;
      }

      .social2 {
        grid-row-start: 3;
        grid-row-end: 4;
      }

      .social3 {
        grid-row-start: 5;
        grid-row-end: 6;
      }

      .social4 {
        grid-row-start: 7;
        grid-row-end: 8;
      }

      .social5 {
        grid-row-start: 9;
        grid-row-end: 10;
      }

      .social6 {
        grid-row-start: 11;
        grid-row-end: 12;
      }
    }
            
          
!
999px
Loading ..................

Console