How to increase background color on top and bottom of menu?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
mfindlay
Super Advanced
Super Advanced
Posts: 38
Joined: Mon Jun 28, 2004 5:00 pm

How to increase background color on top and bottom of menu?

Post by mfindlay »

Hi all,
We have a Milonic menu that has a green background, and would like the resulting flyout menu to show about 20 pixels of green prior to the first menu item and then 20 pixels of green beneath the final menu item.

We can manipulate the individual menu items no problem, but how do we place this additional background only before the first item and only after the last item?

Many thanks!
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Re: How to increase background color on top and bottom of me

Post by Andy »

Hi,

You could try adding something like this to the first menu item:

rawcss=padding-top:20px;

and then this to the bottom item:

rawcss=padding-bottom:20px;

Hope this helps,
Andy
mfindlay
Super Advanced
Super Advanced
Posts: 38
Joined: Mon Jun 28, 2004 5:00 pm

Re: How to increase background color on top and bottom of me

Post by mfindlay »

Hi Andy,

That didn't work because I am making use of the following:

offclass="mmpadding"; // custom style attached to menu
onclass="mmpadding"; // custom style attached to menu

So it appears to be ignoring the rawcss.

Is there a way to use both?
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: How to increase background color on top and bottom of me

Post by Ruth »

Hi,

I'm not sure you can use both. If you could give me a link to the page I could try playing around with it. Also, given your question about the 20px of green before the first item and after the last item, have you tried creating two disabled items, one before and one after each with its own coding throughout the item for padding, color etc? Again, I could do better if I could see the page

Ruth
Post Reply