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:13
Proper use of CSS styles
Poster: p.vladi
Dated: Friday September 12 2003 - 14:24:50 BST
Dear Sirs,
Is it possible to use a proper style sheet with the menu elements instead of the limited functionality offered by default?
For example, if I were to specify a style for a menu element in the <STYLE> tag being
.menu-element
{
PADDING-LEFT : 4;
BORDER-LEFT : SOMECOLOR;
Text alighn : whatever I want
}
this would allow for a greater control of the menu, with text positioning, margins on left and right of the text, but not on the top or the bottom, and anything else CSS has to offer.
Please tell me, how can I implement this function in my script?
Yours sincerely,
Paul Vladi
Poster: Hergio
Dated: Friday September 12 2003 - 15:09:50 BST
Each menu item has an onClass and an offClass attribute. You can tell the items to utilize whatever class you want, both on roll over and roll out. If you want it to never change, set them both to the same style class. See the menu item quick reference on the http://www.milonic.com site under DHTML Menu.
Poster: p.vladi
Dated: Friday September 12 2003 - 15:35:02 BST
Thank you very much for your prompt reply; I have one more question, if you do not mind -
Is it possible to specify this globally, instead of for each item individually?
Hergio wrote:
Each menu item has an onClass and an offClass attribute. You can tell the items to utilize whatever class you want, both on roll over and roll out. If you want it to never change, set them both to the same style class. See the menu item quick reference on the http://www.milonic.com site under DHTML Menu.
Poster: John
Dated: Friday September 12 2003 - 16:39:08 BST
p.vladi wrote:
Thank you very much for your prompt reply; I have one more question, if you do not mind -
Is it possible to specify this globally, instead of for each item individually?
Is it possible to specify this globally, instead of for each item individually?
Yes, onClass and offClass exist in the Style Properties as well. Check the reference that Dave mentioned in a previous message for all the information.