JavaScript.CoolDev.Com Support Forums

Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Text Alignment

 
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu
Author Message
JKDesign



Joined: 02 Aug 2005
Posts: 5

PostPosted: Tue Aug 02, 2005 2:31 pm    Post subject: Text Alignment Reply with quote

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. Confused
Back to top
speedpacket



Joined: 13 Jul 2005
Posts: 13

PostPosted: Tue Aug 02, 2005 3:49 pm    Post subject: Reply with quote

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

PostPosted: Tue Aug 02, 2005 5:21 pm    Post subject: Text Alignment! Reply with quote

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. Very Happy
Back to top
JKDesign



Joined: 02 Aug 2005
Posts: 5

PostPosted: Tue Aug 02, 2005 5:49 pm    Post subject: Vertical Alignment? Reply with quote

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

PostPosted: Tue Aug 02, 2005 8:21 pm    Post subject: Reply with quote

vertical-align is a css property you can set...
Back to top
JKDesign



Joined: 02 Aug 2005
Posts: 5

PostPosted: Tue Aug 02, 2005 8:22 pm    Post subject: Vertical Alignment Reply with quote

Strange that it isn't working for me...
Back to top
JKDesign



Joined: 02 Aug 2005
Posts: 5

PostPosted: Tue Aug 02, 2005 8:29 pm    Post subject: Reply with quote

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

PostPosted: Thu Aug 04, 2005 8:04 pm    Post subject: Reply with quote

You don't need 'VERTICAL-ALIGN'. Please, use 'PADDING' instead.
Back to top
speedpacket



Joined: 13 Jul 2005
Posts: 13

PostPosted: Sun Aug 07, 2005 9:06 pm    Post subject: Reply with quote

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 Sad

Could this be re-implemented please?

(also check my emails regarding this, and other issues...)
Back to top
Display posts from previous:   
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu All times are GMT
Page 1 of 1