Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Update version added to answer on 2018-02-16</p> <h1>Version 1 - Additional Container Required</h1> <p>Here's how I'd skin this cat...</p> <p>I'd create a div that took up 90% of the page width. I'd give this div a background-image of some scissors (minus any dotted lines). Finally, I would place a child div inside and style this to appear as the dotted lines.</p> <p><img src="https://i.stack.imgur.com/cXciH.png" alt="Scissors without dotted line"></p> <h2>HTML</h2> <pre><code>&lt;div id="scissors"&gt; &lt;div&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <h2>CSS</h2> <pre><code>#scissors { height: 43px; /* image height */ width: 90%; margin: auto auto; background-image: url('http://i.stack.imgur.com/cXciH.png'); background-repeat: no-repeat; background-position: right; position: relative; } #scissors div { position: relative; top: 50%; border-top: 3px dashed black; margin-top: -3px; } </code></pre> <p><strong>DEMO:</strong> <a href="http://jsfiddle.net/4CxZH/" rel="nofollow noreferrer">http://jsfiddle.net/4CxZH/</a></p> <hr> <h1>Version 2 - Single Element</h1> <h2>HTML</h2> <pre><code>&lt;div id="scissors"&gt;&lt;/div&gt; </code></pre> <h2>CSS</h2> <pre><code>#scissors { height: 43px; /* image height */ width: 90%; margin: auto auto; background-image: url('http://i.stack.imgur.com/cXciH.png'); background-repeat: no-repeat; background-position: right; position: relative; overflow: hidden; } #scissors:after { content: ""; position: relative; top: 50%; display: block; border-top: 3px dashed black; margin-top: -3px; } </code></pre> <p><strong>DEMO:</strong> <a href="https://jsfiddle.net/4CxZH/99/" rel="nofollow noreferrer">https://jsfiddle.net/4CxZH/99/</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload