Using A Stylesheet Definition In Menu Text


The menu above illustrates the use of a stylesheet definition to style the text in a DHTMLMenu. I used the following style from the stylesheet I use for this site:

.hilite { background-color:yellow}

To use that style in the menu text for Menu Item 2, I used HTML instead of text, as in the following illustration:

css in menu

Make sure that your stylesheet includes the definition you want to use in your menu text, and make sure that the stylesheet is linked to the page(s) that include the menu.