luni, 16 ianuarie 2012

CSS Nice Captcha trick

How many times as a website developer did you encountered problems arranging the layout of a form because of of the captcha verification code?

Yesterday as i was doing an update to a site i've developed some time ago an ideea hit me: why not use as background for the input something like:

{
background: url(http://path/to/image/script.php) no-repeat;
text-indent: 30px
}


..and the efect was amaizing; see example here


enjoy!

Niciun comentariu: