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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

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


                <link href='' rel='stylesheet' type='text/css'>
<link href='' rel='stylesheet' type='text/css'>
<header><img src="" alt="Portrait of a pig">
<a href="" title="Portrait of a pig by ernest figueras, on Flickr" class="attr">Portrait of a pig by ernest figueras, on Flickr</a>
  <h1>You put lipstick on a pig, it's still a pig</h1>
  <p>Bacon ipsum dolor sit amet fatback qui pastrami short ribs occaecat, sirloin ut pancetta drumstick aliquip jowl adipisicing cillum duis pork belly. Cupidatat est non ullamco, pastrami chicken short loin ground round adipisicing. Boudin kevin capicola enim chuck, salami ad beef kielbasa biltong velit mollit. Corned beef nostrud dolor, aute kielbasa meatloaf jowl doner short ribs mollit. Pork loin ex ut shank, pork esse swine reprehenderit tenderloin beef tri-tip nisi kielbasa venison.
Cupidatat bresaola id ex veniam chuck, beef ribs pork belly pork loin venison. Dolore spare ribs aliquip chicken filet mignon pork loin short loin nulla pastrami tail ground round sirloin commodo. Rump eiusmod voluptate meatloaf non, hamburger duis shank cow dolor. Commodo bresaola dolore kevin ut id.
Ball tip adipisicing commodo dolore shank pork chop velit strip steak cillum mollit tempor turkey. Frankfurter pancetta capicola, short loin swine eiusmod shank ut andouille fugiat doner drumstick pig tenderloin. Cillum ex commodo aliquip aliqua. Velit magna pork labore. Short ribs pastrami ham prosciutto, ut enim exercitation pork chop elit landjaeger beef ribs officia turkey fugiat.
Chuck nisi pastrami aliqua eiusmod in pork chop tongue veniam. Tri-tip drumstick do, aliquip corned beef strip steak turducken. Prosciutto id capicola ribeye filet mignon jerky. Enim consequat andouille capicola occaecat veniam eu jerky laboris pork aliquip shankle pariatur biltong porchetta.
Tri-tip magna ut sint chuck hamburger, tempor meatball. Pastrami nisi aute, tongue et pork loin ut. Venison officia sirloin hamburger, veniam dolore prosciutto consequat culpa sint. Velit meatloaf culpa brisket deserunt.</p>


  background: #f3f3f3;
  font-family: 'Open Sans', sans-serif;
h1, h2{
  font-family: 'Lilita One', cursive;
  position: relative;
header img{
  width: 100%;
header h1{
  position: absolute;
  bottom: 1%;
  left: 1%;
  color: rgba(255,20,150,.7);
  width: 100%;
header h2{
  position: absolute;
  top: 2%;
  left: 3%;
  color: rgba(255,255,255,.2);
  font-size: 4em;
  display: inline-block;
  background: rgba(255,255,255,.1);
  padding: 0 .1em 0 .1em;
  transition: all .5s;
header h2:hover{
  color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.2);
  transition: all .5s;
  cursor: pointer;
  color: #777;
  font-size: .8em;
  text-decoration: none;
  float: right;
  margin: 0 1em 0 0;
  margin: 2em 16vw;
  color: #222;
  max-width: 900px;
article h1{
  margin: 0 0 .5em 0;
  font-size: 2.2em;
article h2{
  margin: 1.5em 0 0 0;
  font-size: 1.8em;
article p{
  margin: 1em 0;
  line-height: 1.8em;


                $("header h1").fitText(.45);
$("article h1").fitText(1.1);