CodePen

HTML

            
              <div class="crochet">
  Crochet-like Border
</div>
<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>
            
          
!
via HTML Inspector

CSS

            
              @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:before,
.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;
}
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................