• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Aligning displayed text in JSF.

 
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,
How do I align one part of a message in the centre of the header and the other towards the right?
I tried doing this:

ie, I want show the US airdate to be displayed to the right extreme end of the header while "Show date" should be in the middle(default).
Tried a lot of things but it doesnt seem to work, anyone else tried or have experience with such a problem? Please help.

Thanks.
[ December 21, 2007: Message edited by: v ray ]
 
Saloon Keeper
Posts: 25838
184
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You have the right idea. JSF doesn't support styling, because CSS already does.

I use styles all the time, but in order to make it easier to "skin" a website, I prefer to use stylesheets instead of putting explicit style info on individual items. However, in JSF, instead of "class=", use the "styleClass=" attribute. They had to make that one small change since "class" is a reserved work in Java.

As to why your page isn't working, try viewing the generated HTML using your web browser's "view page source" function and see if the HTML style specs are OK.
reply
    Bookmark Topic Watch Topic
  • New Topic