Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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

              
                <!--
Project inspired by Jen Simmons.
https://labs.jensimmons.com/
-->

<!DOCTYPE HTML>

<html>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <link href="https://fonts.googleapis.com/css2?family=Cabin:wght@700&display=swap" rel="stylesheet">
	<title>Tschichold Quote designed by Aly Sherrard</title>
</head>

<body>
  
  <div class="grid-wrapper">
    <p class="thing1">Whitespace</p>
    <p class="thing2">is to be regarded as an active</p>
    <p class="thing3">Element</p>
    <p class="thing4">not a passive <span>background</span></p>
    <p class="thing5">Jan Tschichold</p>
    
    <b class="red-bar1"></b>
    <b class="red-bar2"></b>
    
    <b class="red-circle"></b>
  </div>

</body>

</html>
              
            
!

CSS

              
                *{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
	font-family: 'Cabin', sans-serif;
	font-weight: 700;
	font-size: 18px;
  padding: 3em 3em 10em 3em;
}

p{
  font-family: 'Cabin', sans-serif;
}

.grid-wrapper{
  max-width: 35em;
  max-height: 45em;
  width: 50vw;
  display: grid;
  margin: auto;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr;
  grid-gap: 1em;
  transform: rotate(-45deg);
  
  .thing1{
    font-size: 4em;
    text-transform: uppercase;
    grid-column: 1 / span 6;
    grid-row: 2;
    align-self: end;
  }
  
  .thing2{
    font-size: 2em;
    grid-column: 2 / span 2;
    grid-row: 3;
  }
  
  .thing3{
    font-size: 5em;
    grid-column: 2;
    grid-row: 4 / span 3;
    align-self: end;
    writing-mode: vertical-rl;
  }
  
  .thing4{
    font-size: 2em;
    grid-column: 3 / span 6;
    grid-row: 6;
    align-self: start;
    text-align: right;
    span{
      display: block;
      text-transform: uppercase;
    }
  }
  
  .thing5{
    font-size: 1em;
    grid-column: 8;
    grid-row: 3 / span 2;
    justify-self: start;
    writing-mode: vertical-rl;
  }
  
  .red-bar1{
    display: block;
    min-width: 3em;
    width: 100%;
    height: 100%;
    background-color: red;
    grid-column: 1;
    grid-row: 3 / span 4;
  }
  
  .red-bar2{
    display: block;
    width: 100%;
    height: .5em;
    background-color: red;
    grid-column: 3 / span 6;
    grid-row: 6;
    align-self: end;
    z-index: -1;
  }
  
  .red-circle{
    display: block;
    width: 13em;
    height: 13em;
    border-radius: 100%;
    background-color: red;
    grid-column: 4 / span 3;
    grid-row: 1 / span 3;
    align-self: center;
    z-index: -1;
  }
  
}//end grid-wrapper


@media (max-width: 1024px){
  .grid-wrapper{
    .thing1{
      font-size: 3em;
    }
    .thing2, .thing4{
      font-size: 1.75em;
    }
    .red-circle{
      width: 10em;
      height: 10em;
    }
  }
}

@media (max-width: 768px){
  .grid-wrapper{
    transform: rotate(0deg);
    width: auto;
  }
}

@media (max-width: 570px){
  .grid-wrapper{
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    .thing4{
      grid-column: 1 / span 8;
      grid-row: 7;
    }
    .red-bar2{
      grid-column: 1 / span 8;
      grid-row: 7;
    }
  }
}

@media (max-width: 425px){
  .grid-wrapper{
    .thing1{
      font-size: 2.75em;
    }
    .thing3{
      font-size: 4em;
    }
  }
}

              
            
!

JS

              
                
              
            
!
999px

Console