Thank you all for your help. Simon's solution

.myLoginLink,
.myLoginLink:link,
.myLoginLink:active,
.myLoginLink:hover
{
  font-size:30px;
}

helped me. It looks now that i'm able to set style for my command link.

2009/3/20 Glauco P. Gomes <[email protected]>

>  Try using *!important* in the style.
>
> .myLoginLink,
> .myLoginLink:link,
> .myLoginLink:active,
> .myLoginLink:hover
> {
>   font-size: 30px !important;
> }
>
> Glauco P. Gomes
>
> Simon Lessard escreveu:
>
> Arg, the dreaded .OraLink!
>
> Try
>
> .myLoginLink,
> .myLoginLink:link,
> .myLoginLink:active,
> .myLoginLink:hover
> {
>   font-size:30px;
> }
>
> That should get rid of it I think. Otherwise, you can use the following but
> it won't work in IE 6 and older:
>
> .myLoginLink.OraLink
> {
>   font-size:30px;
> }
>
>
> Regards,
>
> ~ Simon
>
> On Fri, Mar 20, 2009 at 4:38 AM, Adme Admirolas <[email protected]>wrote:
>
>> Oh sorry :) Just a stupid mistake.
>>  2009/3/20 Matthias Wessendorf <[email protected]>
>>
>>> On Fri, Mar 20, 2009 at 8:51 AM, Adme Admirolas <[email protected]>
>>> wrote:
>>> > First of all i'm using Mozilla FireFox 5. And firebug to inspect
>>> styles.
>>>
>>>  cool, where did you get that ?
>>> As far as I know the latest Firefox is 3.x
>>>
>>> >
>>> > When i have changed css as you told me, firebugshows that myLoginLink
>>> font
>>> > size is overriden by OraLink font size.
>>> >
>>> > 2009/3/19 Simon Lessard <[email protected]>
>>> >>
>>> >> Hi,
>>> >>
>>> >> The generated CSS si perfect with the selector you used, however I
>>> assume
>>> >> you're using IE 6 and therefore composite selectors are not supported.
>>> So
>>> >> change your skin CSS to use
>>> >>
>>> >> .myLoginLink {
>>> >>  font-size:30px;
>>> >> }
>>> >>
>>> >> instead of
>>> >>
>>> >> af|commandLink.myLoginLink {
>>> >>  font-size:30px;
>>> >> }
>>> >>
>>> >> regards,
>>> >>
>>> >> ~ Simon
>>> >>
>>> >> On Thu, Mar 19, 2009 at 11:28 AM, Adme Admirolas <[email protected]
>>> >
>>> >> wrote:
>>> >>>
>>> >>> Us explained in "Apache Trinidad Skinning" article i have tried to
>>> set
>>> >>> styleClass attribute to tr:commandLink.
>>> >>>
>>> >>> In css file i have added this:
>>> >>>
>>> >>> af|commandLink.myLoginLink {
>>> >>>  font-size:30px;
>>> >>> }
>>> >>>
>>> >>> An in jsp:
>>> >>>
>>> >>> <tr:commandLink text="Login" action="aa" styleClass="myLoginLink"/>
>>> >>>
>>> >>> But font size do not change. In generated HTML i see, that there is
>>> set
>>> >>> two class'es - myLoginLink OraLink. In generated CSS there is no
>>> myLoginLink
>>> >>> class. There is .af_commandLink.myLoginLink {font-size:30px}
>>> >>>
>>> >>> So how i should set styleClass for commandLink? What i'm doing wrong?
>>> >
>>> >
>>>
>>>
>>>
>>>  --
>>> Matthias Wessendorf
>>>
>>> blog: http://matthiaswessendorf.wordpress.com/
>>> sessions: http://www.slideshare.net/mwessendorf
>>> twitter: http://twitter.com/mwessendorf
>>>
>>
>>
>
>

Reply via email to