I'm already using a custom theme, but, unless I'm missing something in
your example, this would cause text within all tc:in objects to be
right-aligned. Probably not desirable for most applications. 

John

-----Original Message-----
From: Philippe Hennes [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 15, 2006 1:47 AM
To: MyFaces Discussion
Subject: Re: [Tobago] - No way to right-align text?

At the moment Tobago has no renderer with such an possibility except the
sheet (you can right-align columns).
If you generally want to right-align text in all components of one type
you can simply write a new theme and just overwrite the alignment
(nothing more) of the mother theme in the css file of the derived theme.

i.e. for tc:in:

.tobago-in-default  {
/* Original styles of the mother theme are kept but not declared in the
   new theme

  border: 1px #000000 solid;
  height: 20px;
  font: 12px arial, helvetica, sans-serif;
  padding-left: 2px;
  padding-right: 2px;
*/

/* overwriting alignment of mother theme */
  text-align: right;
}

regards
phil


John wrote:
> Am I missing an obvious technique to right-align text within various 
> components?
> It seems like a glaring omission....
>  
> Thanks,
> John

--
Philippe Hennes - Web Developer - Atanion GmbH Software Development -
Bismarckstrasse 13 - 26122 Oldenburg - Germany phone +49 441 4082321 -
mobile +49 173 2432664 - fax +49 441 4082333
mailto:[EMAIL PROTECTED] - http://www.atanion.com



Reply via email to