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

              
                <!-- Thanks to Johna Paolino's article "Css Grid for Designers" for inspiration! https://open.nytimes.com/css-grid-for-designers-f74a883b98f5 -->
<!-- add/remove layout class name to update grid layout -->

<div class="grid layout-v4">

<img class="image fpo" src="/" alt="For position only.">

<header class="headline">
  <h1>The legacy of Charlie Parker</h1>
  <p>By Wiki P. Dya</p>
</header>

<div class="text">
  <p>
Charlie Parker, also known as Yardbird and Bird, was an American jazz saxophonist and composer. Parker was a highly influential jazz soloist and a leading figure in the development of bebop, a form of jazz characterized by fast tempos, virtuosic technique and advanced harmonies.
  </p>
  <p>
Parker was admired for his unique style of phrasing and innovative use of rhythm. Via his recordings and the popularity of the posthumously published Charlie Parker Omnibook, Parker's identifiable style dominated jazz for many years to come. 
  </p>
  <p>
Miles Davis once said, "You can tell the history of jazz in four words: Louis Armstrong. Charlie Parker".
  </p>

</div>

</div>
              
            
!

CSS

              
                /*/ resets /*/
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.4;
}

h1,
p {
  margin-top: 0;
}

/*/ placeholder images /*/

img.fpo {
  display: inline-block;
  width: 100%;
  height: 2em;
  background-color: #ccc;
  padding-top: 20%;
  padding-bottom: 20%;
  font-family: monospace;
}

/*/ 3 column grid layout /*/

.grid {
  display: grid;
  max-width: 60rem;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 1em 1em; /*/ grid-row-gap / grid-column-gap */
  padding: 1em;
  margin: auto;
}

/*/ named grid areas /*/
.image {
  grid-area: image;
}

.headline {
  grid-area: headline;
}

.text {
  grid-area: text;
}

/*/ Three different layouts /*/
.layout-v1 {
  grid-template-areas:
    "image image image"
    "headline text text"
}

.layout-v2 {
  grid-template-areas:
    "image image headline"
    "image image text"
}

.layout-v3 {
  grid-template-areas:
    "headline headline headline"
    "image image text"
}

.layout-v4 {
  grid-template-areas:
    "headline headline ."
    "text text image"
}
              
            
!

JS

              
                
              
            
!
999px

Console