Borders with two colors

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
Martin
Mega User
Mega User
Posts: 113
Joined: Fri Jul 05, 2002 11:57 pm
Location: Zollikon, Switzerland

Borders with two colors

Post by Martin »

Hi,

I'm trying to add a nice blue border to my menu. That's no problem.
Outside of the blue border i like to have an white border to give a nice effect.

I tried to fiddle around with low3dcolor and high3dcolor, but i never get the desired outline.

The image is a sample from my arts director:

Image


Thanks a lot
cheers

====================================
Merlin Consulting
Martin Schaible
Bahnhofstrasse 27
CH-8702 Zollikon
====================================
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 notice the same thing, whatever the high and low 3D are they take over, although 3d high appears to be the lower and darker color and 3D low appears to be the 3D higher lighter color.

Perhaps Andy could tell us what's going on?

Thanks,
maz
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

I've been trying to get various things as to borders...grrr... But the only way I could get that design was to put it in a one cell table

Code: Select all

<table  cellspacing=0 cellpadding=0 style="border:1px solid #whatevercolor">
That will give you the design you showed in the picture.

Ruth
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

3D high and low colors will ultimately depend on where the light source is.

If you set the high color as the lighter shade and low color as the darker shade you can use swap3d to switch them around.



With regard to the intial post question. from looking at the sample image, the only way to acheive an effect like that is to use images.

Cheers
Andy
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Is that swap3d=1?

If I use border red and 3d grays, is the border red supposed to disappear?

Thanks
maz
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Is that swap3d=1?
Yes, or swap3d=true will do too. Anything that isn't zero or null.
If I use border red and 3d grays, is the border red supposed to disappear?
Probably, if you think this is wrong, let me know and I'll have a re-think about it. We are hopefully at that point with the menu where we can make these tweaks easily enough.

Cheers
Andy
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 don't know what is normally expected of 3D, I have white on white so the 3D doesn't do much, therefore I thought that border red would create a different effect as you say it takes on surrounding color.

More important is menualign center 100% so that it stretches the full width and stays with the browser width. I'm adding screenposition to compensate but that doesn't stay with the browser.

Thank you,

maz
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Just my two cents as to border. It might be nice to have the option of either keeping or not keeping the border color with the 3ds.

Ruth
Post Reply