Advanced Features > Using DHTML-Based JSF Components to Build Web Applications > The JViews Framework Faces Component Set > Styling the Popup Menu

The popup menu is stylable by setting a CSS class name to the following popup menu properties:

For example:

<html>
  [...]
<style>
.menuItem {
  background: #21bdbd;
  color: black;
  font-family: sans-serif;
  font-size: 12px;
}
.menuItemHighlighted {
  background: #057879;
  color: white;
}
.menuItemDisabled {
  background: #EEEEEE;
  font-style: italic;
  color: black;
}
</style>
  [...]
  <jvf:contextualMenu  itemStyleClass="menuItem"
                             itemHighlightedStyleClass="menuItemHighlighted"
                       itemDisabledStyleClass="menuItemDisabled" />

Code Sample 6.14 CSS Styling in a Popup Menu