JohanS
Junior Member
Posts: 2
Registered: 10/20/2004
Member Is Offline
|
| posted on 10/20/2004 at 06:28 AM |
|
|
Automatic sizing top menu items
Is it possible to make the top menu items
autoresize, to the width of the titel in the menu item.
For example
Menuitem 'Home' is small/standard
and
Menuitem 'Personal intrests' resizes to
make it fit.
Many thanx!
|
|
|
tigra
Administrator
Posts: 1976
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 10/20/2004 at 05:32 PM |
|
|
We wanted this feature from the very first versions, but we still haven't found the way to implement it with some browsers that our menus
support. The way around is some server side script that calculates the width of the text based on the sizes table for characters then adds margins and
then prints in values dynamically into Tigra Menu PRO or Tigra Menu GOLD configuration (free version doesn't support individual item sizes, only
per level sizes).
|
|
|
JohanS
Junior Member
Posts: 2
Registered: 10/20/2004
Member Is Offline
|
| posted on 10/21/2004 at 06:20 AM |
|
|
Luckely I don't have to support all the browser you do. I only have to support IE.
I first tried it with the use of:
* document.getElementById().style.width
* document.getElementById().innerWidth
But they seem to have only a value if the
width of the object is set.
I now found an other width:
* document.getElementById().offsetWidth
Probably this only works in IE but that works for me.
|
|
|