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 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

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

              
                <p class="hello">Your browser should be 1200px or wider, because this is a *demo* of CSS Grid and I'm in too deep to make it responsive at the moment.<br/>Original design by <a   href="http://cargocollective.com/zackwang/The-Shapes-of-Sound">Zongkai Wang</a></p>

<main>
  <h1>British Library Sounds</h1>

  <section>
    <h2>Environment &amp; Nature</h2>
    <ul>
      <li>A.R Gregory Kenyan bird recordings</li>
      <li>Amphibians</li>
      <li>British Wildlife</li>
      <li>Early wildlife recordings</li>
      <li>Listen to nature</li>
      <li>Sound effects</li>
      <li>Sound cages</li>
      <li>Water</li>
      <li>Weather</li>
    </ul>
  </section>
  
  <section>
    <h2>Accents &amp; Dialects</h2>
    <ul>
      <li>BBC Voices</li>
      <li>Bevliner Lautarchiv British &amp; Commonwealth recordins</li>
      <li>Millenium Memory Bank</li>
      <li>Survey of English Dialects</li>
      <li>UCL phonetics recordings</li>
    </ul>
  </section>
  
  <section>
    <h2>Arts, Literature &amp; Performance</h2>
    <ul>
      <li>African Writrs' Club</li>
      <li>Art, photography &amp; architecture</li>
      <li>Between Two Worlds: Poetry &amp; Translation</li>
      <li>Early spoken word recordings</li>
      <li>ICA talks</li>
      <li>St. Mary-le-Bow public debates</li>
      <li>The Power of Caribbean Poetry: Word &amp; Sound</li>
      <li>Theatre Archive Project</li>
      <li>Touch Radio</li>
    </ul>
  </section>
  
  <section>
    <h2>Classical Music</h2>
    <ul>
      <li>Bach</li>
      <li>Beethoven</li>
      <li>Brahms</li>
      <li>Chamber Music</li>
      <li>Chopin</li>
      <li>Derek Collier Collection</li>
      <li>Haydn</li>
      <li>Mozart</li>
      <li>Oral History of Glyndebourne opera</li>
      <li>"Wilhelmy" cylinders
    </ul>
  </section>
  
  <section>
    <h2>World &amp; Traditional Music</h2>
    <ul>
      <li>Africa</li>
      <li>Asia</li>
      <li>Europe</li>
      <li>Oceania</li>
      <li>The Americas</li>
      <li>The Middle East</li>
      <li>Worldwide</li>
    </ul>
  </section>
  
  <section>
    <h2>Sound Recording History</h2>
    <ul>
      <li>Alan Blumlein recordings</li>
      <li>Early record catalogues</li>
      <li>Oral history of recorded sound</li>
      <li>Playback &amp; recording equipment</li>
    </ul>
  </section>
  
  <section>
    <h2>Oral History</h2>
    <ul>
      <li>Art, photography &amp; architecture</li>
      <li>Disability Voices</li>
      <li>Early spoken word recordings</li>
      <li>George Ewatt Evans collection</li>
      <li>History of the Common Cold Unit</li>
      <li>Industry: Water, steel &amp; energy</li>
      <li>Jewish survivors of the Holocaust</li>
      <li>Listening Project</li>
      <li>Observing the 1950s</li>
      <li>Opic collection of children's games &amp; songs</li>
      <li>Oral history of British science</li>
      <li>Oral history of jazz in Britain</li>
      <li>Oral historu of recorded sound</li>
      <li>Sport</li>
      <li>St. Mary-le-Now public debates</li>
    </ul>
  </section>
  
  <section>
    <h2>Jazz &amp; Popular Music</h2>
    <ul>
      <li>Oral history of jaxx in Britain</li>
      <li>Skittle recordings</li>
      <li>Touch Radio</li>
    </ul>
  </section>
  
  <span></span>
  <span></span>
  <span></span>
  <span></span>
  <span></span>
</main>
  

              
            
!

CSS

              
                body {
  font: 400 1rem 'Work Sans', Arial, Helvetica, sans-serif;
  margin: 20px 0;
}

.hello {
  margin: 0 0 40px;
  text-align: center;
}

main {
  border: 1px solid #ddd;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(10,154px);
  grid-column-gap: 10px;
  grid-row-gap: 20px;
  margin: 0 auto;
  padding: 20px;
  width: 1200px;
}

main h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: .95;
  margin: 0;
}

section h2 {
  font-size: .875rem;
  margin: 0;
  padding-left: 20px;
  text-transform: uppercase;
}

section ul {
  font-size: .875rem;
  margin: 0 0 30px;
  padding: 0 0 0 20px;
}

section:nth-of-type(1) {
  grid-column: 4;
  grid-row: 2 / 3;
}

section:nth-of-type(2) {
  grid-column: 2;
  grid-row: 6;
}

section:nth-of-type(3) {
  grid-column: 2;
  grid-row: 8 / 9;
}

section:nth-of-type(4) {
  grid-column: 3;
  grid-row: 9 / 10;
}

section:nth-of-type(5) {
  grid-column: 4;
  grid-row: 8;
}

section:nth-of-type(6) {
  grid-column: 5;
  grid-row: 9;
}

section:nth-of-type(7) {
  grid-column: 6;
  grid-row: 7 / 9;
}

section:nth-of-type(8) {
  grid-column: 6;
  grid-row: 10;
}

span {
  background: #C84C47;
}

span:nth-of-type(1) {
  grid-column: 2;
  grid-row: 2 / 5;
}

span:nth-of-type(2) {
  grid-column: 3;
  grid-row: 3 / 8;
}

span:nth-of-type(3) {
  grid-column: 4;
  grid-row: 4 / 7;
}

span:nth-of-type(4) {
  grid-column: 5;
  grid-row: 2 / 8;
}

span:nth-of-type(5) {
  grid-column: 6;
  grid-row: 3 / 6;
}
              
            
!

JS

              
                
              
            
!
999px

Console