Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

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


Auto Save

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.


<h1><a href="">Skullduggery, Inc</a></h1>
<h2>“Service with a smile and a stab”</h2>
<nav role="navigation">
<a href="#">&#9776; Menu</a>
<a href="#">Defenestration</a>
<a href="#">Poisoning</a>
<a href="#">Garroting</a>
<a href="#">Duels</a>
<p><img src="" alt="Street fight in fog" style="float: left; margin-right: 4rem; width: 25%; min-width: 200px;">But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor again is there anyone who loves or pursues or desires to obtain pain of itself, because it is pain, but because occasionally circumstances occur in which toil and pain can procure him some great pleasure. To take a trivial example, which of us ever undertakes laborious physical exercise, except to obtain some advantage from it? But who has any right to find fault with a man who chooses to enjoy a pleasure that has no annoying consequences, or one who avoids a pain that produces no resultant pleasure?


                @import url(;
* { margin: 0; }
html{ font-size: 62.5%; background: #180303; }
body, a {
  font-family: 'Forum', cursive;
  color: #ecede3;
  text-decoration: none;
  padding:2rem 0;
h1 {
  font-size: 5rem;
  text-shadow: 4px 4px 3px rgba(0,0,0,0.3);
h2 { 
  font-size: 2.5rem;
  font-weight: 100;
  margin-left: 10rem;
h1, h2 { text-align: center; }
nav a, p {
  font-size: 2rem;
  padding: 2rem;
a:hover{ background: #000; }
p { line-height: 160%; margin:8rem; }
nav {
  background: #350c0c;
  padding: 1.2rem 0;
  box-shadow:0 8px 6px rgba(0,0,0,0.3);
nav a:first-child{ display:none; }
@media screen and (max-width: 800px) {  
  p { margin: 4rem; }
@media screen and (max-width: 490px) {
   h1 { font-size: 4rem; }
   h2 { font-size: 2rem; margin-left: 4rem; }
   nav, nav a { padding: 1rem; }
   p { margin:1rem; }
@media screen and (max-width: 460px){
   nav { 
     padding: 0;
     height: 5rem;
     overflow: hidden;
     transition: .7s height ease-in-out; 
  nav a { display: block; padding: 1.2rem; }
  nav a:first-child { display: block; }
  nav:hover, nav:focus{ height:23rem; }