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:04
How to increase background color on top and bottom of menu?
Poster: mfindlay
Dated: Tuesday October 19 2010 - 22:18:14 BST
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!
Re: How to increase background color on top and bottom of me
Poster: Andy
Dated: Monday October 25 2010 - 12:37:36 BST
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
Re: How to increase background color on top and bottom of me
Poster: mfindlay
Dated: Tuesday October 26 2010 - 6:32:42 BST
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?
Re: How to increase background color on top and bottom of me
Poster: Ruth
Dated: Friday October 29 2010 - 19:01:28 BST
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