title: Control the dashed border stroke length and distance between strokes
body: <p>Is it possible to control the length and distance between dashed border strokes in CSS?</p>
  
  <p>This example below displays differently between browsers:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>div {
    border: dashed 4px #000;
    padding: 20px;
    display: inline-block;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div&gt;I have a dashed border!&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Big differences: IE 11 / Firefox / Chrome</p>
  
  <p><img src="https://i.stack.imgur.com/46yC4.png" alt="IE 11 border"><img src="https://i.stack.imgur.com/4ELcb.png" alt="Firefox Border"><img src="https://i.stack.imgur.com/0iJTT.png" alt="Chrome border"></p>
  
  <p>Are there any methods that can provide greater control of the dashed borders appearance?</p>