Yes, of course, style classes are an option.

But believe it or not, you can't use style classes everywhere. There
are CSS constructs, where it's just not possible to use classes, eg.
when you need to do subselects.

If you add to this the necessity to work with external designers,
you're out of luck.

regards,

Martin

On 4/20/06, Jacob Hookom <[EMAIL PROTECTED]> wrote:
> One thing you could also promote is to stick to classes for styling--
> the 37Signals guys do this, leaving identifiers up to server-side code
> and promoting re-use of content.
>
> Matthias Wessendorf wrote:
> > 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
> >
> >
>
>
> --
> --------------------------
> Sent from my FrankenBerry Wireless Handheld
>
>


--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Reply via email to