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.


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.


                <h1>Straight &amp; Narrow</h1>
<h2>Cravats for the Modern Adventurist</h2>
<h3>If you're going to hang a piece of cloth around your neck, why not make it one of ours?</h3>
  <p>Did you know that the modern necktie originates from the cravats worn by Croation mercenaries during the Thirty Years War almost four centuries ago? From that kick-ass origin, ties have become the sartorial choice of dandies, fops, and Organisation
    Men of all stripes.
    <p>Here at Straight &amp; Narrow we believe that ties should return to that are capable of staunching aortal bleeding from a musket-ball wound, lashing bamboo together to raft down the Mekong Delta, or acting as a garrotte.
    <p>To accomplish this, we make our ties from modern materials: no silk or plain cotton! We use tactical ballistic nylon or military spec canvas for our creations, which include hidden pockets. Skinny, fashion-forward ties to complement the modern adventurist.
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Minima corrupti odio, officiis debitis culpa ratione illum. Similique voluptate dolores quaerat cumque quas quibusdam eveniet at repudiandae culpa, assumenda, eum absurdum veniam.


                @import url(,700,900);
@import url(;
body { 
  font-family: Lato, sans-serif;
h1 { 
  font-size: 3rem;
  margin-bottom: 0;
  font-family: Montserrat, sans-serif;
h2 { font-weight: 400; }
h1, h2, h3 { text-align: center; }
section { 
  column-width: 16rem;
  line-height: 1.5;
  width: 45rem; 
  column-gap: 7rem;
  margin: 2rem auto; 
  text-align: justify;
  widows: 2;
  position: relative;
  column-fill: balance;
  position: relative;
  background-image: url(;
  background-repeat: no-repeat;
  background-position: center;
section p:first-of-type {
  margin-top: 0;