Question about aI("text=...")

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
perldev
Mega User
Mega User
Posts: 115
Joined: Thu Aug 26, 2004 5:23 pm
Location: Chicago

Question about aI("text=...")

Post by perldev »

When appending <sup>&reg;</sup> to the text attribute of aI, the possition of text becomes lower; (see the second tab of demo)

How to fix this? Thanks.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

It's the padding, which doesn't 'ignore' the sup and let that go into the padding area, it considers it part of the 'word'. So, to fix it put this in your css style [name it what you want]

Code: Select all

.regpad{padding-top:2px;padding-right:10px;padding-bottom:5px;padding-left:10px;}
Then in the aI string that uses that sup, put this

Code: Select all

aI("text=My Services<sup>&reg;</sup>;offclass=regmenu;onclass=regmenu;url=/services/;showmenu=m1;")
That changes the top padding for that particular item. I tested it in IE, Netscape, Firefox, Opera and it works fine.

Ruth
perldev
Mega User
Mega User
Posts: 115
Joined: Thu Aug 26, 2004 5:23 pm
Location: Chicago

Post by perldev »

It worked. But after apply regpad, the height of menu item is greater. Check the demo again.
perldev
Mega User
Mega User
Posts: 115
Joined: Thu Aug 26, 2004 5:23 pm
Location: Chicago

Post by perldev »

Change the left/right padding to 0px works:

Code: Select all

.regpad{padding-top:2px;padding-right:0px;padding-bottom:5px;padding-left:0px;} 
Using onclass/offclass on menu item, the default padding 5px 10px 5px 10px still has impact.
AmrSalem
Advanced
Advanced
Posts: 10
Joined: Tue Jun 07, 2005 11:07 am

Refco

Post by AmrSalem »

well .. i'm not experinced in dhtml menu's to replay your question

i'm more intersted in futures trading

u can contact me on yahoo messenger under username: XXXXXXXX

<hr>Edit by kevin3442: This is not a forum for advertising personal services. Please stick to the topic at hand. Thank you. --Kevin.
<hr>
Amr Salem
perldev
Mega User
Mega User
Posts: 115
Joined: Thu Aug 26, 2004 5:23 pm
Location: Chicago

Post by perldev »

AmrSalem,

I am a developer; don't know much business. :oops:

If you are interested in futures trading, we do have very good resource for you.


Edit by John: Same as Kevin's comment above. If you want to talk business please take it to email.
AmrSalem
Advanced
Advanced
Posts: 10
Joined: Tue Jun 07, 2005 11:07 am

Post by AmrSalem »

dear perldev,

thanks for the resource :D
Amr Salem
Post Reply