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>
<h1>A barebones CSS Grid</h1>
</header>
<main>
<p>Beef culpa short loin, ipsum ut exercitation irure nulla capicola bresaola dolor ham hock pork loin. Ullamco tail mollit porchetta dolore lorem commodo cow. Ball tip irure drumstick fugiat, burgdoggen jowl culpa brisket landjaeger in hamburger mollit. Boudin pork biltong, strip steak brisket irure deserunt meatloaf. Chuck pastrami prosciutto alcatra pancetta lorem bresaola veniam quis ut consectetur. Pork chop est frankfurter kielbasa bresaola short loin meatloaf capicola occaecat burgdoggen in hamburger.</p>

<p>Jowl cupidatat cow qui, pancetta sirloin tempor ipsum venison landjaeger proident pork belly shoulder. Short ribs porchetta venison incididunt, fugiat nulla eu excepteur ut do. Pig kevin eu beef ea. Drumstick exercitation rump, pastrami ham meatloaf do ad lorem quis. Pig cupidatat jowl dolor incididunt jerky, in occaecat laboris nisi et. Nisi consectetur deserunt sed.</p>

<p>Ball tip consequat exercitation nisi. Tenderloin in duis, reprehenderit doner pork chop consectetur flank cow pork loin sint magna voluptate anim veniam. Id cillum et short ribs leberkas bacon, fatback boudin lorem. Occaecat boudin minim eu jerky kevin laborum irure.</p>

<p>Qui nulla pig corned beef et, tempor meatball nisi laborum beef ribs sint flank non landjaeger tail. Landjaeger shank sausage picanha nulla tenderloin quis doner ham. Laboris flank burgdoggen veniam meatloaf short loin cow swine short ribs dolore elit. Rump dolor proident spare ribs shankle ground round officia beef.</p>
</main>
<aside>
  <p>ALSO</p>
</aside>
<footer>
<p>My pal footfoot</p>
</footer>
            
          
!
            
              header {
  grid-area: header;
}

main {
  grid-area: main;
}

aside {
  grid-area: aside;
}

footer {
  grid-area: footer;
}

body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 20px;
  grid-template-areas: "header header header"
                       "main main aside" 
                       "footer footer footer";
  grid-template-rows: minmax(auto, max-content);
}

/* This is just color and spacing stuff */
header, main, footer, aside {
  background-color: hsla(125, 25%, 85%, 1);
  padding: 20px;
}

body {
  background-color: hsla(125, 25%, 75%, 1);
}
            
          
!
999px
Loading ..................

Console