Styling a select1 with CSS in html "span" mode

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Styling a select1 with CSS in html "span" mode

Benjamin
hi all,

i try to change the style  of a html select element  from a select1
element. I worked in "span" mode following the orbeon wiki

http://wiki.orbeon.com/forms/doc/developer-guide/html-layout#TOC-Rationale
.

As a result of using the "span" mode, the <select> element looses the
class Attribute. The only way i found to add a class to the <select>
element is to add the class attribute in the theme.xsl, but it feels not
right.  It is possible to modifiy the result of the "span" mode?  Do i
miss something?

Regards
Benjamin



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Styling a select1 with CSS in html "span" mode

Erik Bruchez
Administrator
Benjamin,

Do you need the class on the select? Typically:

* nospan: select.myclass { ...} or .xforms-select.mycass { ... }
* span: .myclass select { ... }

Both ways reach the HTML select element.

-Erik

On Tue, Feb 16, 2010 at 5:44 PM, Benjamin Jehle
<[hidden email]> wrote:

> hi all,
>
> i try to change the style  of a html select element  from a select1 element.
> I worked in "span" mode following the orbeon wiki
>
> http://wiki.orbeon.com/forms/doc/developer-guide/html-layout#TOC-Rationale
> .
>
> As a result of using the "span" mode, the <select> element looses the class
> Attribute. The only way i found to add a class to the <select> element is to
> add the class attribute in the theme.xsl, but it feels not right.  It is
> possible to modifiy the result of the "span" mode?  Do i miss something?
>
> Regards
> Benjamin
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing
> list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Styling a select1 with CSS in html "span" mode

Benjamin
Erik,

you are  right. Thx a lot for your advice.

Ben


Erik Bruchez schrieb:

> Benjamin,
>
> Do you need the class on the select? Typically:
>
> * nospan: select.myclass { ...} or .xforms-select.mycass { ... }
> * span: .myclass select { ... }
>
> Both ways reach the HTML select element.
>
> -Erik
>
> On Tue, Feb 16, 2010 at 5:44 PM, Benjamin Jehle
> <[hidden email]> wrote:
>  
>> hi all,
>>
>> i try to change the style  of a html select element  from a select1 element.
>> I worked in "span" mode following the orbeon wiki
>>
>> http://wiki.orbeon.com/forms/doc/developer-guide/html-layout#TOC-Rationale
>> .
>>
>> As a result of using the "span" mode, the <select> element looses the class
>> Attribute. The only way i found to add a class to the <select> element is to
>> add the class attribute in the theme.xsl, but it feels not right.  It is
>> possible to modifiy the result of the "span" mode?  Do i miss something?
>>
>> Regards
>> Benjamin
>>
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email] mailing
>> list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>>
>>    


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws