Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>My attempt, I only used the shadow and rotate properties for chrome, but you can add it for other browsers,</p> <p><a href="http://jsfiddle.net/hsYUy/7/" rel="nofollow">http://jsfiddle.net/hsYUy/7/</a></p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code-css lang-css prettyprint-override"><code>body { background: #f2f2f2; } #content { width: 460px; margin: 0 auto; background: #fff; height: 400px; /* for demo */ -moz-box-shadow: 0 1px 5px #ccc; -webkit-box-shadow: 0 1px 5px #ccc; box-shadow: 0 1px 5px #ccc; border-bottom-left-radius: 15px; -moz-border-radius-bottomleft: 15px; -webkit-border-bottom-left-radius: 15px; border-bottom-right-radius: 15px; -moz-border-radius-bottomright: 15px; -webkit-border-bottom-right-radius: 15px; z-index: 0; } .closed { z-index: 1; width: 460px; overflow: hidden; margin: 0 auto; height: 80px; margin-bottom: -5px; } .closed .mid { /*background: #fff;*/ width: 360px; margin: 0 auto; margin-top: -70px; height: 80px; background-color: #fff; -moz-box-shadow: 0 1px 5px #ccc; -webkit-box-shadow: 0 1px 5px #ccc; box-shadow: 0 1px 5px #ccc; -webkit-border-radius: 12px; } .left, .right { display: none; } .closed .right { display: block; width: 0; height: 100px; border-left: 60px solid #fff; border-right: 1px solid #ccc; margin-left: 384px; -webkit-transform: rotate(39deg); margin-top: -34px; box-shadow: 1px -1px 1px #ccc; } .closed .left { display: block; width: 0; height: 100px; border-right: 60px solid #fff; border-left: 1px solid #ccc; margin-left: 16px; -webkit-transform: rotate(-39deg); margin-top: -100px; box-shadow: -1px -1px 1px #ccc; }</code></pre> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="content"&gt; &lt;div class="closed"&gt; &lt;div class="right"&gt;&lt;/div&gt; &lt;div class="left"&gt;&lt;/div&gt; &lt;div class="mid"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt;</code></pre> </div> </div> </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