W3C home > Mailing lists > Public > www-html@w3.org > April 2008

Re: Radio and checkbox texts

From: Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com>
Date: Mon, 28 Apr 2008 06:38:57 +0100
Message-ID: <481562F1.5050808@googlemail.com>
To: "Anas R." <anas.linuxfuture@gmail.com>
CC: w3-html <www-html@w3.org>

Anas R. wrote:
> I'm trying to say that we have to deal with the radio button and its text as a one object.
> So that styling input[type='radio'] will mean styling the radio-btton-text that has an icon called 'radio-button'.
> Just like styling <li> object that has an icon called 'circle'.

Enclose the radio button and its text in another element (div or li or 
p, or whatever you think is most appropriate), give it a class of 
'radio', then style it like:

.radio {}

Does this not solve your problem without breaking backwards 
compatibility, and if not, why not?

--
Benjamin Hawkes-Lewis
Received on Monday, 28 April 2008 05:39:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:13 GMT