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.

    <h1>The Woods in A 7-column Symmetrical Grid</h1>
  <div class="warning">This demo only works in browsers that support CSS Grid Layout. If you can see this message, then your browser isn't supporting Grid. You can try out Grid in <a href="https://nightly.mozilla.org/">Firefox Nightly</a> or <a href="http://gridbyexample.com/browsers/">other browsers by flipping a flag</a>.</div>
    <li><img src="http://labs.jensimmons.com/2016/examples/images/hiking/01.jpg" /></li>
    <li><img src="http://labs.jensimmons.com/2016/examples/images/hiking/15.jpg" /></li>
    <li><img src="http://labs.jensimmons.com/2016/examples/images/hiking/02.jpg" /></li>
    <li class="highlight-box"><img src="http://labs.jensimmons.com/2016/examples/images/hiking/04.jpg" /></li>
    <li><img src="http://labs.jensimmons.com/2016/examples/images/hiking/05.jpg" /></li>
    <li><img src="http://labs.jensimmons.com/2016/examples/images/hiking/16.jpg" /></li>
    <li class="highlight-wide"><img src="http://labs.jensimmons.com/2016/examples/images/hiking/06.jpg" /></li>
    <li><img src="http://labs.jensimmons.com/2016/examples/images/hiking/07.jpg" /></li>
    <li class="highlight-tall"><img src="http://labs.jensimmons.com/2016/examples/images/hiking/08.jpg" /></li>
    <li><img src="http://labs.jensimmons.com/2016/examples/images/hiking/09.jpg" /></li>
    <li class="highlight-box"><img src="http://labs.jensimmons.com/2016/examples/images/hiking/10.jpg" /></li>
    <li><img src="http://labs.jensimmons.com/2016/examples/images/hiking/11.jpg" /></li>
    <li><img src="http://labs.jensimmons.com/2016/examples/images/hiking/12.jpg" /></li>
    <li class="highlight-tall"><img src="http://labs.jensimmons.com/2016/examples/images/hiking/13.jpg" /></li>
    <li><img src="http://labs.jensimmons.com/2016/examples/images/hiking/14.jpg" /></li>
    <li><img src="http://labs.jensimmons.com/2016/examples/images/hiking/17.jpg" /></li>
    <li><img src="http://labs.jensimmons.com/2016/examples/images/hiking/19.jpg" /></li>
    <li><img src="http://labs.jensimmons.com/2016/examples/images/hiking/21.jpg" /></li>
    <li><img src="http://labs.jensimmons.com/2016/examples/images/hiking/25.jpg" /></li>
    <li><img src="http://labs.jensimmons.com/2016/examples/images/hiking/22.jpg" /></li>
    <li><img src="http://labs.jensimmons.com/2016/examples/images/hiking/18.jpg" /></li>
    <li><img src="http://labs.jensimmons.com/2016/examples/images/hiking/23.jpg" /></li>
    <li><img src="http://labs.jensimmons.com/2016/examples/images/hiking/24.jpg" /></li>
    <li><img src="http://labs.jensimmons.com/2016/examples/images/hiking/26.jpg" /></li>
    <li><img src="http://labs.jensimmons.com/2016/examples/images/hiking/27.jpg" /></li>
    <li><img src="http://labs.jensimmons.com/2016/examples/images/hiking/20.jpg" /></li>

              * {box-sizing: border-box;}
html {
  font-family: Georgia, serif;
  font-size: 18px;
h1 {
  font-size: 2rem;
  color: #fff;
  margin: 0;
  padding: 0.75em 0.25em;
  background: #2c2c2c;
  line-height: 1.1em;
ul {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 50vw;  
  grid-auto-flow: dense;
  @media (min-width: 360px) {
    grid-template-columns: repeat(3, 1fr);  
    grid-auto-rows: 33vw;  
  @media (min-width: 500px) {
    grid-template-columns: repeat(4, 1fr);  
    grid-auto-rows: 25vw;  
  @media (min-width: 700px) {
    grid-template-columns: repeat(5, 1fr);  
    grid-auto-rows: 20vw;  
  @media (min-width: 900px) {
    grid-template-columns: repeat(7, 1fr);  
    grid-auto-rows: 15vw;  
  @media (min-width: 1100px) {
    grid-template-columns: repeat(9, 1fr);  
    grid-auto-rows: 11vw;  
li {
  height: 100%;
  padding: 10px;
  list-style-type: none;
li.highlight-box {
  grid-row: span 2;
  grid-column: span 2;
li.highlight-tall {
  grid-row: span 2;
li.highlight-wide {
  grid-column: span 2;
img {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
  border: 1px solid black;
  box-shadow: 1px 3px 8px rgba(0,0,0,0.5);

// Style a Warning Message. Remove if Grid works 
.warning {
  color: red;
  font-size: 200%; 
@supports (display: grid) {
  .warning {
    display: none;

Loading ..................