[flexcoders] Centering Titles in Panels

2005-03-31 Thread Brett Hitzel


Hello Everyone,

We are trying to center the text that appears in the title sections of Panels, 
to no avail. I 
have tried utilizing the 'titleStyleDeclaration' style property, but I am not 
sure that I am 
doing it right. I referenced a CSS class that was in my included stylesheet, 
and in that class 
i specified 'text-align:center' and that did not work, however, it does effect 
it in some way 
because when I do that the text in the panel header is no longer bolded. I have 
tried 
various styles within the my CSS class and none have had any real effect.

Anyone out there tried this before or have any ideas?

Thanks!
-Brett





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: Centering Titles in Panels

2005-03-31 Thread Brett Hitzel


Worked perfectly! Thanks!

-Brett

--- In flexcoders@yahoogroups.com, Lin Lin [EMAIL PROTECTED] wrote:
 Brett,
 This seams to work for me. Can you try and let me know if it works for
 you?
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
 !-- To use stylesheet: --
  mx:Style source=myStyleSheet.css/ 
 mx:Panel  styleName=myclass  title=Panel header  width=300
 height=300/mx:Panel
 
 /mx:Application
 
 
 
 myStyleSheet.css:
 .myclass { headerColors:#FF,#FF ;
 textAlign:center}
 
 
 -lin
 
 -Original Message-
 From: Brett Hitzel [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 31, 2005 12:36 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Centering Titles in Panels
 
 
 
 Hello Everyone,
 
 We are trying to center the text that appears in the title sections of
 Panels, to no avail. I 
 have tried utilizing the 'titleStyleDeclaration' style property, but I
 am not sure that I am 
 doing it right. I referenced a CSS class that was in my included
 stylesheet, and in that class 
 i specified 'text-align:center' and that did not work, however, it does
 effect it in some way 
 because when I do that the text in the panel header is no longer bolded.
 I have tried 
 various styles within the my CSS class and none have had any real
 effect.
 
 Anyone out there tried this before or have any ideas?
 
 Thanks!
 -Brett
 
 
 
 
 
  
 Yahoo! Groups Links





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/