border on one side only

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
bdaltilio
Advanced
Advanced
Posts: 15
Joined: Mon Oct 03, 2005 4:37 pm

border on one side only

Post by bdaltilio »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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: Select all

.mynewborder{border-top:0px;border-right:0px;border-bottom:0px; border-left:1px solid red}
Then in the style you'd call

Code: Select all

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
bdaltilio
Advanced
Advanced
Posts: 15
Joined: Mon Oct 03, 2005 4:37 pm

Post by bdaltilio »

thank you.
Post Reply