cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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

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

Code Indentation


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.

              <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(https://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;
Loading ..................