W3C home > Mailing lists > Public > www-style@w3.org > August 2005

Re: Styling form controls

From: Christoph Päper <christoph.paeper@tu-clausthal.de>
Date: Tue, 16 Aug 2005 17:16:23 +0200
Message-ID: <43020347.2090300@tu-clausthal.de>
To: www-style@w3.org
CC: Garrett Smith <dhtmlkitchen@gmail.com>

Garrett Smith schrieb:
> I want to be able to style form controls.

Usually I want to punch people in the face, who want that, but you gave 
reasonable examples, where this could be beneficial.

> <input type=:"checkbox" style="display: block" /> does not work.

It does work as expected (after you delete that erronous colon).

> checkbox {
>    background: #fff url(/img/checkbox.gif) no-repeat;
> }

You actually want to use 'content', not 'background' or 
'background-image'. Those selectors don't work with HTML of course, 
you'd rather use "input[type='checkbox']".
Received on Tuesday, 16 August 2005 15:16:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:40 GMT