cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Joseph <pjoseph...@yahoo.com>
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:label>Login:</fd:label>
      <fd:datatype base="string"/>
      <fd:validation>
        <fd:length min="2"/>
      </fd:validation>
    </fd:field>

When I view source in the browser, I see:

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

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.

thx
Paul

--- "Volkm@r" <plsdontreply@arcor.de> 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:
> users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail:
> users-help@cocoon.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message