Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'd do something like:</p> <p><a href="http://dabblet.com/gist/5476973" rel="nofollow">http://dabblet.com/gist/5476973</a></p> <p>In short, lots of border radius + a white circle on top of everything.</p> <p>On my example, I'd then bind click events onto the divs using javascript, or just make them all <code>&lt;a&gt;</code> elements instead and add a <code>display:block;</code>.</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>/** * Quarter Circles */ .main { position: relative; width: 200px; height: 200px; margin: 0 auto; } .quarter { position: absolute; width: 50%; height: 50%; transition: background-color 0.2s ease-in-out; } .quarter:hover { background-color: pink; } .quarter1 { top: 0; left: 0; background-color: red; border-radius: 100% 0 0 0; } .quarter2 { top: 0; right: 0; background-color: blue; border-radius: 0 100% 0 0; } .quarter3 { bottom: 0; left: 0; background-color: orange; border-radius: 0 0 0 100%; } .quarter4 { bottom: 0; right: 0; background-color: green; border-radius: 0 0 100% 0; } .cutout { width: 50%; height: 50%; background-color: white; position: absolute; top: 25%; left: 25%; border-radius: 50%; pointer-events: none; }</code></pre> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="main"&gt; &lt;div class="quarter quarter1"&gt;&lt;/div&gt; &lt;div class="quarter quarter2"&gt;&lt;/div&gt; &lt;div class="quarter quarter3"&gt;&lt;/div&gt; &lt;div class="quarter quarter4"&gt;&lt;/div&gt; &lt;div class="cutout"&gt;&lt;/div&gt; &lt;/div&gt;</code></pre> </div> </div> </p>
    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. 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