Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong>EDIT</strong><br> This answer was given before the OP explained the desired platform. I'm choosing to leave it up since it is helpful to others looking to achieve the same thing in the WEB world.</p> <hr> <p><strike>Since the OP hasn't said what platform this is for</strike>, I'm going to throw out a WEB solution. </p> <p>Personally I dispise building anything on the server that can be offloaded to the client. Here's a CSS3 way to achieve what is asked.</p> <pre><code>&lt;style&gt; /* Calendar */ .calendar { margin: 10px; background: #fff; width:176px; height:176px; } .calendar .header { -webkit-border-top-left-radius: 30px; -webkit-border-top-right-radius: 30px; background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#EEC4C4), to(#521B1C), color-stop(.92,#da3434),color-stop(.1,#ef9fa5)); height: 50px; width: 176px; -webkit-box-shadow: inset 0px 2px 1px rgba(255, 255, 255, 0.4); } .calendar p.weekday { color: #fff; font-weight: bold; text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.7); width: 176px; line-height: 50px; font-size: 25px; text-align: center; } .calendar p.daynumber { color: #000; font-weight: bold; text-shadow: 0px 1px 0px #fff; width: 176px; line-height: 126px; font-size: 130px; text-align: center; } .calendar .paper { -webkit-border-bottom-left-radius: 30px; -webkit-border-bottom-right-radius: 30px; background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#7A7A7A), to(#EDEDED), color-stop(.05,#BFBFBF),color-stop(.2,#E3E3E3)); height: 126px; width: 176px; }​ &lt;/style&gt; &lt;div class="calendar icon"&gt; &lt;div class="header"&gt; &lt;p class="weekday"&gt; Monday &lt;/p&gt; &lt;/div&gt; &lt;div class="paper"&gt; &lt;p class="daynumber"&gt; 7 &lt;/p&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <h2>Note:</h2> <p>You would still need to fall back to PNG files (preferably a sprite) and overlay the weekday and the day in any non-webkit browser.</p> <h2>Disclaimer:</h2> <p>None of this code is mine, it can be found at<br> <a href="http://graphicpeel.com/cssiosicons" rel="nofollow">http://graphicpeel.com/cssiosicons</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