Border around the main menu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Thommy
Beginner
Beginner
Posts: 3
Joined: Wed Sep 10, 2003 3:50 pm

Border around the main menu

Post by Thommy »

Hello everybody,

first of all i have to say, that this menu is a great peace of work. I just want to know, if it is possible to define the border around the main menu more exactly, e.g. i want to have no border at the left side of the menu, just the other sides.

Maybe someone can help me with this.

Regards
Thommy
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Thanks for the kind words. Everybody here tends to agree with you :!:

No, it's all or nothing. However, you might want to experiment with filters and shadows. By adjusting the direction of your light source you might be able to get what you're looking for (or close, anyway).
John
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Just a thought... you could use the onclass and offclass functions.
Declare your menu as usual, but inside of each menuitem set the onclass and off class. I dont know if you have a horizontal menu or a vertical so this might not be exactly what you are doing, but you should understand and see how to do it for the other direction.

For a vertical menu, create a style that has a border on the top and right. Create another that has one on just the right and then create a third that has a border on the right and bottom. Your first menuitem should have its on and off class attributes set to the first style so the top menu item has a border on the top and right. Then all the menu items in the middle use the second style so they only have borders on the right side. And the final item has the third style to only render a border on the right and bottom. See what I am saying...remember on AND off classes should be the same, this way the menu borders remain even when you are mouseovering them. Hope this gives you some insight! ;)
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

I cheated with illusion, I added a table background color with the menu positioned to show a border.

*wiz*
maz
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Sneak... ;)
John
Post Reply