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


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.


                <div id="message">
  <div class="content">
    <p>Uh oh, you found another Chicago sinkhole...</p>
<p class="fine">Made at <a href="">#CodePenChicago</a>, April 2015</p>


                /* --- RULES & INSTRUCTIONS --- 
  The rules are...there are no rules!
  Anything goes — change and use as much markup as you 
  like, use images, use JavaScript, use whatever you
  want! Just keep the reference to #CodePenChicago in there
  somewhere, it can be tiny or barely visible or whatever,
  so we can have a frame of reference for what the pen
  was made for.  

  Create Chicago's 404 page — not Chicago's website's 404
  page, but if the city itself had a 404 page, what would
  it look like, what would it say? Do as much or as little
  as you like — just has to be original! While I want us 
  to have fun and be humorous, let's try not to be insulting 
  or inappropriate in any way!

  Fork this pen to create your submission for the challenge —
  further instructions on how to submit your pen will be given
  at the event, but feel free to leave a comment on the original
  pen linking to your fork for review. The forks with the most 
  hearts or something like that will win some killer CodePen 

  Happy forking!

html {
  background: url( no-repeat top;
  background-size: cover;
  height: 100%;
body {
  line-height: 1.2;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
#message {
  //background: rgba(0,0,0,0.5);
  .background-image(linear-gradient(to right, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.7) 25%, rgba(0,0,0,0) 100%));
  padding: 20px;
  width: 100%;
  color: #ffffff;
  .content {
    max-width: 70px;
    margin: 0 auto;
  h1 {
  a {
    color: #a43232;
    font-weight: bold;
p {
  &.fine {
    background: rgba(0,0,0,.7);
    color: #ffffff;
    font-weight: 100;
    padding: 5px;
    position: fixed;
    bottom: 0;
    text-align: right;
    width: 100%;
    margin: 0 auto;
    a {
      color: #ffffff;