RE: Re: Styling by attribute-based association?

Andrew,

There is also the <label> that is a child of all form controls, as defined
by XForms which XHTML 2 'imports'.

Regards,

Mark


Mark Birbeck
CEO
x-port.net Ltd.

e: Mark.Birbeck@x-port.net
t: +44 (0) 20 7689 9232
w: http://www.formsPlayer.com/
b: http://internet-apps.blogspot.com/

Download our XForms processor from
http://www.formsPlayer.com/ 

> -----Original Message-----
> From: www-style-request@w3.org 
> [mailto:www-style-request@w3.org] On Behalf Of Andrew Fedoniouk
> Sent: 25 October 2005 20:50
> To: Matthew Raymond; W3C CSS
> Subject: BTW: Re: Styling by attribute-based association?
> 
> 
> By the way:
> 
> There is no label element in XHTML 2.0,
> 
> To be precise there is <label> but its meaning is different:
> "The label element is used to define a label for a list. The 
> contents of the label element represent the title of a list 
> (or sublist)."
> 
> Source: 
> http://www.w3.org/TR/2005/WD-xhtml2-20050527/mod-list.html#ede
f_list_label
> 
> Andrew Fedoniouk.
> http://terrainformatica.com
> 
> 
> 
> 
> ----- Original Message -----
> From: "Matthew Raymond" <mattraymond@earthlink.net>
> To: "W3C CSS" <www-style@w3.org>
> Sent: Tuesday, October 25, 2005 12:06 PM
> Subject: Styling by attribute-based association?
> 
> 
> |
> |   How does one style an element based on whether it has an 
> association
> | to another element via an attribute? Specifically, how do I style a
> | <label> with a |for| attribute?
> |
> |   Situations where this would be useful:
> |
> | 1) You want the label to have a dashed border when the associated
> | control is selected.
> |
> | 2) You want non-associated labels do have a different style from
> | associated labels, even in cases where a <label> has an 
> incorrect |for|
> | attribute value.
> |
> | 3) You want all labels for a specific control or class of 
> controls to be
> | styled in a specific way.
> |
> |   Is a new selector required in this case? For that matter, is a new
> | selector needed for parent-child <label> associations? This 
> affects both
> | existing HTML markup and new markup proposals.
> | 
> 
> 
> 

Received on Tuesday, 25 October 2005 20:12:14 UTC