Documentation
jQWidgets uses a pair of css files - jqx.base.css and jqx.[theme name].css. The base stylesheet creates the styles related to the widget's layout like margin, padding, border-width, position. The second css file applies the widget's colors and backgrounds. The jqx.base.css should be included before the second CSS file.
Below is the list of CSS classes used by jqxMenu.
When you create a custom style with colors and backgrounds for jqxMenu, you need to do the following:
<script>
$(document).ready(function () {
// Create a jqxMenu
$("#jqxMenu").jqxMenu({ width: 600, height: 30, theme: 'summer'});
});
</script><!DOCTYPE html>
<html lang="en">
<head>
<title id='Description'>jQuery Menu and Context Menu - CSS Styling Sample</title>
<link rel="stylesheet" href="../../jqwidgets/styles/jqx.base.css" />
<link rel="stylesheet" href="../../jqwidgets/styles/jqx.summer.css" />
<script src="../../jqwidgets/jqxcore.js"></script>
<script src="../../jqwidgets/jqxmenu.js"></script>
</head>
<body>
<div id='content'>
<script>
$(document).ready(function () {
// Create a jqxMenu
$("#jqxMenu").jqxMenu({ width: 600, height: 30, theme: 'summer'});
});
</script>
<div id='jqxWidget'>
<div id='jqxMenu'>
<ul>
<li><a href="#">Home</a></li>
<li>About Us
<ul>
<li><a href="#">History</a></li>
<li><a href="#">Our Vision</a></li>
</ul>
</li>
<li>Services
</li>
<li>Products
<ul>
<li><a href="#">New</a>
<ul>
<li><a href="#">Corporate Use</a></li>
<li><a href="#">Private Use</a></li>
</ul>
</li>
<li><a href="#">Used</a>
<ul>
<li><a href="#">Corporate Use</a></li>
<li><a href="#">Private Use</a></li>
</ul>
</li>
<li><a href="#">Featured</a></li>
</ul>
</li>
<li><a href="#">Gallery</a></li>
<li><a href="#">Events</a></li>
<li><a href="#">Careers</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
</div>
</div>
</div>
</body>
</html>