Forums Archive Index > SmartMenus 5 > how to center background images

Author: kryptonite

Date: 5 Mar 2005 3:24 pm

I want to add a menu item with a background image. As the image is much larger than the menu item box it appears in, I want to display the image centered, so that the center of the image appears in the center of the item (x and y direction). But I don't know how to do it or if an appropriate menu item property for this exists at all.

Example: {U:'',T:'Test',BgImage:'images/testbackground.gif'}

What do I have to add to this line to make the bg.image appear centered?


Author: smartmenus

Date: 6 Mar 2005 4:14 am

kryptonite wrote:
What do I have to add to this line to make the bg.image appear centered?Actually there is no menu item property for the purpose and it's not possible to center align the background image. It can only be tiled in the whole menu item box.