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

border on one side only


Poster: bdaltilio
Dated: Monday June 18 2007 - 18:21:31 BST

Is it possible to make the border show up on only one side of the menu? Say on the left side in a vertical menu?

Thanks.
Brian


Poster: Ruth
Dated: Monday June 18 2007 - 18:38:05 BST

Hi,

Yes, but not using the border code in the menu. For those who don't know, there are 3 'border' codes for the menu, the first borderwidth, bordercolor, borderstyle, place a border around the outside of the menu, it is specific to the whole menu, not items. Offborder and onborder put borders around each item. To get the effect you want, which is a border down one side of the menu, you must eliminate the borderstyle, borderwidth, bordercolor from the style, and then code the border using css. You could create a class and code the border, then you'd call the class in the style section. Remember to call the class as offclass=; and onclass= so you'll have that border in both mouse states. As an example of the css

Code:
.mynewborder{border-top:0px;border-right:0px;border-bottom:0px; border-left:1px solid red}


Then in the style you'd call

Code:
offclass="mynewborder";
onclass="mynewborder";


This would give you a 1px red border down the left side. In reality it is putting a left hand border on each item but it looks like it's down the left side of the menu.

Ruth


Poster: bdaltilio
Dated: Monday June 18 2007 - 18:49:23 BST

thank you.