| Author |
Message |
JKDesign
Joined: 02 Aug 2005 Posts: 5
|
Posted: Tue Aug 02, 2005 2:31 pm Post subject: Text Alignment |
|
|
Can anyone tell me how to change the text alignment in the menu? It defaults to Left and I would like it to be Right.
Thanks.  |
|
| Back to top |
|
 |
speedpacket
Joined: 13 Jul 2005 Posts: 13
|
Posted: Tue Aug 02, 2005 3:49 pm Post subject: |
|
|
| Check http://javascript.cooldev.com/doc/menu/ and scan it for CSS; you can assign CSS styles to your text, which enables you to do virtually anything you'd like with your text outlines... |
|
| Back to top |
|
 |
JKDesign
Joined: 02 Aug 2005 Posts: 5
|
Posted: Tue Aug 02, 2005 5:21 pm Post subject: Text Alignment! |
|
|
Thank you so much Speedpacket. I had reviewed that information before. However, your reply jogged my memory and I realized that I was using the wrong code for CSS text alignment. It works now.  |
|
| Back to top |
|
 |
JKDesign
Joined: 02 Aug 2005 Posts: 5
|
Posted: Tue Aug 02, 2005 5:49 pm Post subject: Vertical Alignment? |
|
|
| As I said in my last post, I got the horizontal alignment working. I have only 1 menu that has 2 lines so I want the menus to align vertically. Any guesses on vertical alignment? I'm sure that the menu is in a table. So why can't I set VERTICAL-ALIGN: middle? |
|
| Back to top |
|
 |
speedpacket
Joined: 13 Jul 2005 Posts: 13
|
Posted: Tue Aug 02, 2005 8:21 pm Post subject: |
|
|
| vertical-align is a css property you can set... |
|
| Back to top |
|
 |
JKDesign
Joined: 02 Aug 2005 Posts: 5
|
Posted: Tue Aug 02, 2005 8:22 pm Post subject: Vertical Alignment |
|
|
| Strange that it isn't working for me... |
|
| Back to top |
|
 |
JKDesign
Joined: 02 Aug 2005 Posts: 5
|
Posted: Tue Aug 02, 2005 8:29 pm Post subject: |
|
|
Does it require the Professional version? Here is my code. Do you see any discrepancies?
.clsCMOn {
FONT-SIZE: 12;
FONT-WEIGHT: bold;
COLOR: white;
TEXT-ALIGN: right;
VERTICAL-ALIGN: middle;
PADDING: 6px 8px;
}
.clsCMOver {
FONT-SIZE: 12;
FONT-WEIGHT: bold;
TEXT-ALIGN: right;
COLOR: white;
PADDING: 6px 8px;
} |
|
| Back to top |
|
 |
Victor_Chuiko Support Team
Joined: 12 Apr 2005 Posts: 145
|
Posted: Thu Aug 04, 2005 8:04 pm Post subject: |
|
|
| You don't need 'VERTICAL-ALIGN'. Please, use 'PADDING' instead. |
|
| Back to top |
|
 |
speedpacket
Joined: 13 Jul 2005 Posts: 13
|
Posted: Sun Aug 07, 2005 9:06 pm Post subject: |
|
|
padding won't work if you do not know how many lines your actual menu contensts will consume.
We're dynamically createing translated menus in php, and generating them using your class; sometimes a phrase is longer in one language than the other which needs to be split over two rules; in previous versions, this was supported - in the last version of your class, it is no longer supported, and part of the text is simply "faling off" the menu item, which is bad
Could this be re-implemented please?
(also check my emails regarding this, and other issues...) |
|
| Back to top |
|
 |
|