Header/Seperator

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
bobwill
Mega Advanced
Mega Advanced
Posts: 229
Joined: Tue Oct 01, 2002 3:03 pm
Location: Kansas
Contact:

Header/Seperator

Post by bobwill »

I know how to create a header. I want to use a header with no text in it, but I do not want the header to be the same height as the other menu items. I just want to use it as a visual seperator from other menu items.

aI("text= align=center;type=header;");

Can I control the height of the header??
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'll assume this is vertical, have you tried itemheight and fontsize in the item?

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

Post by John »

Don't forget, Bob, that   is a valid character, and will have the default applied to it if nothing else is there to override it.

Another possibility is removing it - just text=; .
John
User avatar
bobwill
Mega Advanced
Mega Advanced
Posts: 229
Joined: Tue Oct 01, 2002 3:03 pm
Location: Kansas
Contact:

Post by bobwill »

Thanks, Maz & John.

I used "itemheight" and eliminated &nbsp. I can now control the item height.

Is there a way to just control the color for this pseudo header/separator bar entry, rather than taking on the color for headerbgcolor as defined in the menu style??

aI("text=;type=header;itemheight=2;");
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Yes, headerbgcolor is both a global and item property, so you can specify it in the item. The same is true of headercolor, though without text you dont need that.

Code: Select all

aI("text=;type=header;itemheight=2;headerbgcolor=#f0f0f0;");
This would allow the globally defined headerbgcolor to apply to other headers and this one to have whatever you specify in that item.

Ruth
Post Reply