Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                    <main>
        <img src="https://www.zionandzion.com/clients/blog-examples/logo.png" id="logo">
        <nav>
            <ul>
                <li><a href="#">Judith Light</a></li>
                <li><a href="#">'SUV'-ed</a></li>
                <li><a href="#">Soulstice</a></li>
                <li><a href="#">BB&B</a></li>
                <li><a href="#">Cha-Chinga</a></li>
                <li><a href="#">Kirk Steele</a></li>
            </ul>
        </nav>
        <article>
            <h1>Yaaaaas Kweeen</h1>
            <p>You could have this Staples gift card that has one hundred and thirty-five dollars on it. I know: it’s Staples, what can you even buy there? Only any electronic device you could ever want.  Any type of paper -- your basic printer, card stock, construction, Post-it. Even like big things -- trash cans, rolly desk chairs, lamps--</p>
        </article>
        <img src="https://www.zionandzion.com/clients/blog-examples/tori-alex.png" id="tori-alex">
      
</main>
              
            
!

CSS

              
                @import url("https://use.typekit.net/bxh4sfk.css");

@mixin poppins { font-family: 'poppins', sans-serif; }
@mixin rig { font-family: "rig-solid-bold-outline", sans-serif; }

$off-white: #fefcf9;
$lt-yellow: #f9e3c2;
$tangerine: #ff9c00;
$lt-pink: #f3d0d4;
$peach: #f4b38f;
$gray: #3f3f3f;

html, body {
  font-size: 16px;
  margin: 0;
  padding: 0;
}

* { box-sizing: border-box; }

body {
  @media only screen and (min-width: 0){
    color: $gray;
    @include poppins;
    line-height: 1.5;
    position: relative;
    z-index: 10;

    &:before {
      background:  linear-gradient(25deg, $lt-pink 0%, $lt-pink 51%, $off-white 51%, $off-white 100%);
      content: '';
      height: 100%;
      left: 0;
      position: absolute;
      top: 0;
      width: 100%;
      z-index: -2;
    }

    &:after {
      background:  linear-gradient(-26deg, rgba($peach, 0.75) 0%, rgba($peach, 0.75) 51%, transparent 51%, transparent 100%);
      mix-blend-mode: multiply;
      content: '';
      height: 100%;
      left: 0;
      position: absolute;
      top: 0;
      width: 100%;
      z-index: -1;
    }

    main {
      display: grid;
      grid-template-columns:
      [column-screen-start] minmax(1rem, 1fr)
      [container-start] minmax(0, 60rem) [container-end]
      minmax(1rem, 1fr) [column-screen-end];
      height: 100%;

      & > * { grid-column: container; }
    }

    a {
      color: $gray;
      text-decoration: none;
      transition: color 0.5s ease-in;

      &:hover { color: $peach; }
    }

    img { max-width: 100%; }

    h1 {
      color: $tangerine;
      font-size: 1.95rem;
      @include rig;
      line-height: 1;
      margin-bottom: 0;
      text-align: center;
    }

    ul {
      list-style: none;
      margin: 0;
      padding-left: 0;
      text-align: center;
    }

    li {
      display: inline-block;

      a {
        display: block;
        padding: 0.5rem;
      }
    }

    article {
      background: url("https://www.zionandzion.com/clients/blog-examples/border.png") no-repeat top left, url("https://www.zionandzion.com/clients/blog-examples/border.png") no-repeat bottom right;
      background-size: cover;
      margin: 1rem 0;
      padding: 1rem 1.5rem;
    }

    p { line-height: 2; }

    #logo {
      justify-self: center;
      margin: 1rem 0;
    }

    #tori-alex {
      align-self: end;
      justify-self: center; 
      max-width: 100%;
    }
  }

  @media only screen and (min-width: 576px){
    ul {
      display: grid;
      grid-template-rows: auto;
      grid-template-columns: repeat(6, 1fr);
      align-items: center;
      justify-content: space-between;
    }

    li {
      a { font-size: 0.95rem; }
    }
  }

  @media only screen and (min-width: 768px){
    #tori-alex { max-width: 400px; }
  }

  @media only screen and (min-width: 992px){
    background-position: bottom left;
    background-size: 100%;

    main {
      grid-gap: 15px;
      grid-template-columns:
      [column-screen-start] minmax(1rem, 1fr)
      [container-start] minmax(0, 45rem) [middle-start] 10% [middle end] minmax(0, 30rem) [container-end]
      minmax(1rem, 1fr) [column-screen-end];
      grid-template-rows: repeat(3, auto) minmax(200px, 1fr);
      height: 100%;
    }

    #logo { 
      align-self: center;
      grid-row: 1 / 2;
    }

    nav {
      align-self: center;
      grid-row: 1 / 2;

      li {
        &:nth-of-type(3) { padding-right: 5rem; }
        &:nth-of-type(4) { padding-left: 5rem; }
      }
    }

    article { 
      grid-column: 2 / 4;
      grid-row: 3 / 4;
      justify-self: end;
      margin: 0;
    }

    #tori-alex { 
      align-self: end;
      grid-column: 3 / 5;
      grid-row: 2 / 5;
      max-width: 100%;
    }

    h1 { font-size: 2.5rem; }
  }

  @media only screen and (min-width: 1200px){
    nav {
      justify-self: center;
      width: 80%;
    }

    #logo { margin-top: 2rem; }

    article {
      grid-column: 2 / 4;
      grid-row: 2 / 3;
      justify-self: left;
      padding-left: 3rem;
      padding-right: 3rem;
      width: 90%;
    }

    #tori-alex {
      grid-column: 3 / 5;
      justify-self: end;
    }

    h1 { font-size: 3.5rem; }
  }

  @media only screen and (min-width: 1400px){
    background-position: center center;
    background-size: cover;

    ul {
      a { font-size: 1.25rem; }
    }

    article {
      font-size: 1.5rem;
      grid-row: 2 / 4;
      padding-left: 4rem;
      padding-right: 4rem;
    }
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console