cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Joseph <>
Subject Re: Question about xsl for labels
Date Mon, 13 Sep 2004 12:09:50 GMT
I too am having the same problem in CForms, but don't
know how to use CSS to set the background colour of
only the labels in the page.  An example on how to
implement this would be of great help.

I have for example the following:
    <fd:field id="login" required="true">
      <fd:datatype base="string"/>
        <fd:length min="2"/>

When I view source in the browser, I see:

      <input type="text" title="" value="paul"
id="login" name="login"><span
class="forms-field-required"> * </span>

So, "Login:" does not appear to be tagged as a label,
but appears untagged in the page.  So, I am not sure
how to specify that only the text next to the label be
given a specified background colour.

I don't want to change the bgcolor of the whole page,
just of the label for the field.


--- "Volkm@r" <> wrote:

> Roy Pueschel wrote:
> > 
> > I am a newbie using cocoon, and am using CForms.
> In my program, I
> > would like to change the background color for
> labels of text fields,
> > but was not successful.
> > 
> Why don't you simply use CSS for setting background
> colors?
> -- 
> Volkm@r
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message