damn,

just tested. Firefox shows the div as green, but IE not.

thanks for pointing it out, I just updated the wiki.

On 4/20/06, Martin Marinschek <[EMAIL PROTECTED]> wrote:
> That only works for Firefox, though. Not for IE, afaik.
>
> regards,
>
> Martin
>
> On 4/20/06, Apache Wiki <[EMAIL PROTECTED]> wrote:
> > Dear Wiki user,
> >
> > You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for 
> > change notification.
> >
> > The following page has been changed by MatthiasWessendorf:
> > http://wiki.apache.org/myfaces/css_component_ids
> >
> > New page:
> > Since JSF's NamingContainer's cause rendered ids like "foo:bar", here is 
> > described howto work around for CSS.
> >
> > You just need to use a backslash to escape the colon
> > {{{
> >  <style>
> >    div#foo { background-color:red}
> >    div#foo\:bar { background-color:green}
> >  </style>
> > }}}
> >
> > Rendered markup by a component
> > {{{
> >  <div id="foo">Foo</div>
> >  <div id="foo:bar">Foo:Bar</div>
> > }}}
> >
> > Note, that JSF is not incompatible to CSS
> >
> > BTW. the standard naming container components are:
> >  * h:form
> >  * f:subview
> >  * h:dataTable
> >
>
>
> --
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>


--
Matthias Wessendorf
Aechterhoek 18
48282 Emsdetten
http://jroller.com/page/mwessendorf
mwessendorf-at-gmail-dot-com

Reply via email to