Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:38
Mixing font size in menu - [Solved]
Poster: twing
Dated: Tuesday July 12 2005 - 6:52:11 BST
Hi guys,
Can I mix font size for menu name? eg.
ITOOL Menu ... let's say I want the 'TOOL' to be size 11, while others stay at size 12.
The only way I can think of is to use images.
Any suggestions are welcome, thanks
Twing.
Poster: Ruth
Dated: Tuesday July 12 2005 - 15:12:47 BST
To use different sizes within an item you can use
Code:
<big>Bigger Text</big>
or you could use Code:
<font size=1em>ITOOL</font> Menu
It doesn't seem you can use px. For example if you try to set Code:
<font size=11px>ITOOL</font> Menu
You get some weird things in some browsers, like a really huge ITOOL. If you're not specifying px, em etc, I think you would use Code:
<font size=1>ITOOL</font> Menu
this shows font-size=1 but you'd use what you wanted, 1, 2, 3, 4. I'm not sure exactly how high up that particular 'formula' goes. As you noted the only other way would be to use an image, which in reality is the safest way since all the browsers would then see it the same.
Ruth
Poster: ScottN
Dated: Tuesday July 19 2005 - 14:55:31 BST
I've also used spans and css to achieve a similar effect.
Code:
aI("text=I<span class=smallertext>TOOL</span>;url=example.html;");
And then set the style in your stylesheet. Or, you can set the css inline. Basically, if you can do it in a regular page, you should be able to do it in a menu item.[/code]
Poster: Ruth
Dated: Tuesday July 19 2005 - 17:07:35 BST
Hi Scott,
Great idea That would actually allow the use of particular font size and fonts and colors with every word if that were wanted. Thanks for the post.
Next time you log in, just come and delete the extra post with the little x at the top of it.
Ruth
Poster: John
Dated: Tuesday July 19 2005 - 23:45:17 BST
Just my $.02, but CSS is definitely the way to go. <font> is depreciated, and for some reason just looks 'tacky' to me! Depending on what you're looking for, a set size (e.g., 12px) might be better than 'bigger', etc.
Already deleted the dup - not to worry.