Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Just to update this, it seems you can in multiple ways.</p> <p><a href="http://lea.verou.me/2011/03/beveled-corners-negative-border-radius-with-css3-gradients/" rel="noreferrer">Lea Verou posted a solution</a></p> <p><a href="http://jsfiddle.net/TQmvX/" rel="noreferrer">Here is mine using border-image</a></p> <h2>Using border image</h2> <p><strong>html</strong></p> <pre><code>&lt;div&gt;&lt;img src="https://s3.amazonaws.com/resized-images-new/23292454-E6CD-4F0F-B7DA-0EB46BC2E548" /&gt;&lt;/div&gt; </code></pre> <p><strong>css</strong></p> <pre><code>div { width: 200px; border-width: 55px; -moz-border-image: url(http://i47.tinypic.com/2qxba03.png) 55 repeat; -webkit-border-image: url(http://i47.tinypic.com/2qxba03.png) 55 repeat; -o-border-image: url(http://i47.tinypic.com/2qxba03.png) 55 repeat; border-image: url(http://i47.tinypic.com/2qxba03.png) 55 repeat; margin: 50px auto; } </code></pre> <hr> <h2>Using radial gradient</h2> <p><a href="http://lea.verou.me/2011/03/beveled-corners-negative-border-radius-with-css3-gradients/" rel="noreferrer">Lea Verou's solution</a></p> <p><strong>html</strong></p> <pre><code>&lt;div class="inner-round"&gt;&lt;/div&gt; </code></pre> <p><strong>css</strong></p> <pre><code>.inner-round { background-image: radial-gradient(circle at 0 0, rgba(204,0,0,0) 14px, #c00 15px), radial-gradient(circle at 100% 0, rgba(204,0,0,0) 14px, #c00 15px), radial-gradient(circle at 100% 100%, rgba(204,0,0,0) 14px, #c00 15px), radial-gradient(circle at 0 100%, rgba(204,0,0,0) 14px, #c00 15px); } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

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