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

Border color query


Poster: pat
Dated: Monday November 29 2004 - 20:36:04 GMT

I want a colored border (on all sides) of the entire menu (not individual menu items). But for current page menu item, I want the white right border and white background. How can this be done.

Thanks in advance.


Poster: John
Dated: Monday November 29 2004 - 21:12:38 GMT

Sounds like a trip to the quick ref guides is in order... :D

Use onborder= and offborder= with the same shorthand used for CSS...
Code:
onborder="1px solid #ffffff";

etc.


Poster: pat
Dated: Monday November 29 2004 - 22:56:59 GMT

Thanks.

But I need the onborder only on the right side. There should be no borders on top, bottom and left sides. How can this be done?


Poster: Ruth
Dated: Tuesday November 30 2004 - 2:14:41 GMT

You can do it using the offclass and onclass parameters to create the border. If you have a css style sheet you can create the border class for the menu in it and then in your global style call it along with the other styles listed. For example, in the style sheet you might have the following two definitions [one is for the default border style when no mouse is over it, that would be a border all around, the other is for when you mouseover just having a border on the right side:
Code:
.menuborder {border:1px solid #ffffff}
.menuborderOn {border-top:0px solid #ffffff;border-right:1px solid #ffffff;border-bottom: 0px solid #ffffff;border-left:0px solid #ffffff}
Then in the menu_data.js file you would put this along with all your other style codes in the top section where you have the onbgcolor, offbgcolor etc.
Code:
offclass="menuborder";
onclass="menuborderOn";


Ruth


Poster: John
Dated: Tuesday November 30 2004 - 13:52:27 GMT

You could also try the rawcss= property...
Code:
rawcss="border-right:1px solid #ffffff";

etc.


Poster: pat
Dated: Tuesday November 30 2004 - 14:03:24 GMT

Thanks for your suggestions.

I need another solution to the following problem.

I want a colored border (on all sides) of the entire menu (not individual menu items). But when a menu item is highlighted with (pagebgcolor= white), I want the right border color of that menu item to be white. How can this be done.

Thanks in advance.


Poster: Ruth
Dated: Tuesday November 30 2004 - 16:20:39 GMT

There is a style property called pageborder which can be coded as pageborder="1px solid #ffffff"; I have no idea if that could be set up as a 'class' and be able to set it for just having a border on the right side.
I don't know what your menu is like, but you have a number of options to use for the page property, i.e. pagebgcolor, pagebgimage, pageborder, pageclass, pagecolor, pageimage. You can find an explanation of each of them on the menu quick reference guides - style properties. [there's a link below to that. I'll try and see if I can figure something out to get what you want and post back here if I can.

Ruth