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

Can't get border to work


Poster: Croft Storm
Dated: Monday December 8 2003 - 18:42:21 GMT

I've just updated to v.5 and I can't get the border to work. I just wan't a 1px white border but I've tried everything but no luck.


Poster: Ruth
Dated: Tuesday December 9 2003 - 6:47:34 GMT

You've got this in your menu_data.js file

Code:
bordercolor="#000000";
offborder="1pxsolid#FFFFFF";
onborder="1pxsolid#FFFFFF";
high3dcolor="#FFFFFF";
borderstyle="solid";
borderwidth="1";
Change the bordercolor="#000000"; to bordercolor="#FFFFFF"; and since that will make the border white whether the mouse in on or off position and since you have the borderstyle listed and the borderwidth, you can eliminate the onborder and offborder I believe. Also, in your item section you seem to have 'site' listed twice and to have extra semi-colons and more border color which doesn't seem to match what you have in the styles definitions.
Code:
aI("text=Site;showmenu=Site;;onbordercolor=316AC5;offbordercolor=FFFFFF;")
aI("text=Site;showmenu=Site;;onbordercolor=316AC5;offbordercolor=FFFFFF;")aI("text=Interest;showmenu=Interest;;onbordercolor=316AC5;offbordercolor=FFFFFF;")


Ruth


Poster: Croft Storm
Dated: Tuesday December 9 2003 - 18:15:05 GMT

:oops: Something so simple, thanks. I realise that there's 2 'sites', I've got a few more things to add so I've left it for now.

There is one more question i've got though, at the moment the border just surrounds the entire menu, how do I get it to surround each individual cell?


Poster: Ruth
Dated: Tuesday December 9 2003 - 20:06:55 GMT

Well, you put in a separator bar at 1px and with color of #FFFFFF that puts a line between each menu item. One other thing, I'm not sure on other browsers but in IE5.0 with the itemwidth set to 100 that menu goes off the screen on the right of the browser. I think what it's doing is reading each separate section of the border, each item as being 100px in width.

Ruth


Poster: Croft Storm
Dated: Tuesday December 9 2003 - 20:25:45 GMT

cheers all, its working :D