Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Andrew on Dec 01, 2008 12:08
open dhtmlx forum
How do I set the color of dhtmlxMenu with version 2.0?

In versions before 2.0 I could set my own color for the dhtmlxMenu like so:

/*plain button state - top level*/
.menuButton {
    border : solid 1px #BF9102; <<<
}
... etc ...

Now dhtmlxMenu seems to have images embedded in the css:

div.dhtmlxMenu_dhx_black_Middle {
    position: relative;
    height: 24px;
    border: none;
    background-image: url("../imgs/dhxmenu_dhx_black/dhtmlxmenu_bg.png"); <<<
    aborder-bottom: #333333 1px solid;
    background-position: top;
    background-repeat: repeat-x;
    -moz-user-select: none;
}

Does this mean that I have to create a background image if I want to change the color of the menu?

How can I set the color to #BF9102 ?

thanks,

Andrew
Answer posted by Support on Dec 02, 2008 00:44
div.dhtmlxMenu_dhx_black_Middle {
    ...
    // remove
    background-image: url("../imgs/dhxmenu_dhx_black/dhtmlxmenu_bg.png"); <<<
    background-position: top;
    background-repeat: repeat-x;
    ...
    // add
    background-color: #BF9102;
}