![]()
Here's an useless trick but I thought it'd be interesting to share. I am sure that you have seen online icon drawing applications. Looking at one of those recently I had an idea of how to draw old school pixelated shapes using only css. So I am presenting what might be a world's first pure css drawer :)
Take a look at the Pure Css Icon Sketcher
The Concept
So how to "draw" with nothing but css? There's not much to work with as you can imagine. My idea was to create a 32 x 32 grid made of <a> elements. Each <a> has random id and href attribute. By default links have "transparent" backgrounds. When link is clicked on, :visited pseudo class is applied. I have styled :visited links with dark grey background. So, marked as visited, link is no longer transparent.
That gives us a feeling that we're coloring boxes and - actually drawing.
IE users will not be able to use this tool repeatedly because when page loads, IE treats all anchors as visited.
Designer, developer and a passionate standardista. Long time web professional with huge experience in all types of front-end work. Founder of Css Globe and creator of
warnis on 11 Feb, 2008 wrote:
Dejan Cancarevic on 11 Feb, 2008 wrote:
Ivan Nikolic on 11 Feb, 2008 wrote:
Lim Chee Aun on 12 Feb, 2008 wrote:
Azeem on 12 Feb, 2008 wrote:
Jacorre on 12 Feb, 2008 wrote:
Catar4x on 13 Feb, 2008 wrote:
And I have make and edited a sprite creator with colors.
You can see in : http://www.dbdreams.net/Sprite_creator.php
It's a beautiful source !
Steven Wilson on 15 Feb, 2008 wrote:
Fedmich on 17 Feb, 2008 wrote:
Btw, you made me/us smile by that demo.
Polkovnik on 19 Feb, 2008 wrote:
Akai on 23 Feb, 2008 wrote:
Boris on 14 Mar, 2008 wrote:
Danish on 18 Mar, 2008 wrote:
It's cool idea :)
dibos on 11 Jun, 2008 wrote:
Nika Sew on 14 Jun, 2008 wrote:
marius on 8 May, 2009 wrote: