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.

+ add another resource


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


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.


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.


                <!-- Thanks to Johna Paolino's article "Css Grid for Designers" for inspiration! -->
<!-- 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>

<div class="text">
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.
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. 
Miles Davis once said, "You can tell the history of jazz in four words: Louis Armstrong. Charlie Parker".




                /*/ 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;

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 {
    "image image image"
    "headline text text"

.layout-v2 {
    "image image headline"
    "image image text"

.layout-v3 {
    "headline headline headline"
    "image image text"

.layout-v4 {
    "headline headline ."
    "text text image"