Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource
via CSS Lint

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource
via JS Hint

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Want a Run Button?

If active, the preview will update automatically when you change code.


              <div class="crochet">
  Crochet-like Border
<p>Tested and works in IE9+, Firefox, Chrome, Opera</p>
<p>IE8 doesn't show the innermost border.</p>
<p>IE7 and IE6 only show the innermost border.</p>
<p>Firefox and IE9+ make effort to round the dots, so they look the best atm.</p>


              @import url(http://fonts.googleapis.com/css?family=Pacifico);

html { height: 100%; }

body {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  background: #CB7;
  background: linear-gradient(to bottom, #CB7, #FEA);
  margin: 0;
  min-height: 100%;
  padding: 2em;
  text-align: center;

.crochet {
  color: #234;
  display: inline-block;
  font-family: Pacifico;
  font-size: 2.5em;
  padding: 1em;
  /* everything above is for this page's style */
  background: white;
  background-clip: padding-box;
  border: 4px dotted white;
  position: relative;
  z-index: 1;

.crochet:after {
  border: inherit;
  border-width: 2px;
  content: '';
  left: -6px;
  right: -6px;
  top: -6px;
  bottom: -6px;
  position: absolute;
  z-index: -1;

.crochet:after {
  border-width: 1px;
  border-radius: 4px;
  left: -7px;
  right: -7px;
  top: -7px;
  bottom: -7px;



Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.


Loading ..................