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

              
                .GridWrapper
  header.Header
    h1.SiteTitle Philip K. Dick
  main.Main
    h2.ContentTitle Biography
    section.ContentText
      p Philip K. Dick lived most of his life in California. He was born in 1928 in Chicago. In his career PKD wrote 36 novels and five short story collections between 1952 and 1982 when he died in Santa Ana, California. A Scanner Darkly was dedicated to many of his friends who died or suffered damage from drug abuse (including himself). The first person narration of Radio Free Albemuth is written from the perspective of a young science fiction writer named Philip who lives in Berkeley. Many insights into Dick’s view of his world are available here. These include his distrust for government and authority, his life as a professional writer and even cosmic visions he is said to have experienced. The novels of the Valis trilogy continue to blur the lines between fiction and Dick’s twisted reality.
    aside.ContentAside
      img(src="http://www.philipkdickfans.com/images/PKD/Philip_Dick2.jpg")
  aside.Sidebar
    p Philip K. Dick lived most of his life in California. He was born in 1928 in Chicago. In his career PKD wrote 36 novels and five short story collections between 1952 and 1982 when he died in Santa Ana, California.
  footer.Footer
    p “But—let me tell you my cat joke. It's very short and simple. A hostess is giving a dinner party and she's got a lovely five-pound T-bone steak sitting on the sideboard in the kitchen waiting to be cooked while she chats with the guests in the living room—has a few drinks and whatnot. But then she excuses herself to go into the kitchen to cook the steak—and it's gone. And there's the family cat, in the corner, sedately washing it's face."
              
            
!

CSS

              
                body {
  padding: 40px;
}

h1,h2,,h3,h4,h5,h6 {
  margin: 0
}

.Header {
  grid-area: header;
  padding: 20px;
}
.Main {
  grid-area: main;
}
.Sidebar {
  grid-area: sidebar;
}
.Footer {
  grid-area: footer;
}

.GridWrapper {
  display: grid;
  max-width: 960px;
  margin: 0 auto;
  grid-template-columns: 9fr 40px 3fr;
  grid-template-rows: auto;
  grid-template-areas: 
    "header header header"
    "main . sidebar"
    "main . footer";
}

.ContentTitle {
  grid-area: content-title;
  padding: 0.5em 0;
}

.ContentText {
  grid-area: content-text;
}

.ContentAside {
  grid-area: content-aside;
}

.Main {
  background: #f6f6f6;
  padding: 20px;
  display: grid;
  grid-template-columns: 8fr 1fr 3fr;
  grid-template-rows: auto;
  grid-template-areas: 
    "content-title . ."
    "content-text . content-aside";
}
              
            
!

JS

              
                
              
            
!
999px

Console