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 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:20 UTC