Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

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:46

css style quetion -question, too lol


Poster: Ruth
Dated: Wednesday January 28 2004 - 18:10:04 GMT

Just out of curiousity I was wondering if there's a way to code in a menu item the norepeat for the bgimage? The thought just came up by a question someone asked about 'stretching' an image instead of having it repeat if a menu item wrapped [which this person seemed to want] when it went wider than the set size of the menu [which they also wanted], so I was just curious if that's possible to do and set the image to be always center?

Ruth


Poster: kevin3442
Dated: Wednesday January 28 2004 - 23:54:05 GMT

Hi Ruth,

I suppose you could use the offclass menu item property. Define a style like so
Code:
.menuBG {
background-repeat:no-repeat;
background-position:50% 50%;
}

The background-repeat setting would cause no repeating, and the background-position would center the image within the item. Define the bgimage property in the menu style, and define the menu item like so:
Code:
aI("text=whatever;url=whatever.htm;offclass=menuBG;");

...similarly for onclass and overbgimage.

That should take care of the no-repeat and centering concern... don't know about "stretching" the image though. I'm not aware of a css background property that does that, but then, I'm not very conversant with css. Might have to think on it some more.

Kevin


Poster: Ruth
Dated: Thursday January 29 2004 - 1:08:40 GMT

Thanks Kevin..it's something good to know, never know when it might come in handy...wonder if you can use off/onclass for just one menu item, though instead of having to use it in the full menu style?

Ruth


Poster: kevin3442
Dated: Thursday January 29 2004 - 4:33:58 GMT

innkeeper9 wrote:
...wonder if you can use off/onclass for just one menu item, though instead of having to use it in the full menu style?

Yes, you can. They can be used as style properties or as [urlhttp://www.milonic.com/itemproperties.php]menu item properties[/url].

Cheers,

Kevin