I would like to have the background of one menu item red to emphasize it. See example:
this is the website I have used it before but want to convert it to a wysiwyg site but need the same look to the menu.
www.ppocc.org
Thanks
Code: Select all
<label class="toggle" for="ResponsiveMenu1-submenu" id="ResponsiveMenu1-title">Menu<span id="ResponsiveMenu1-icon"><span> </span><span> </span><span> </span></span></label>
<input type="checkbox" id="ResponsiveMenu1-submenu">
<ul class="ResponsiveMenu1" id="ResponsiveMenu1" role="menu">
<li><a role="menuitem" href="#">Home</a></li>
<li><a role="menuitem" href="#">Blog</a></li>
<li><a role="menuitem" href="#">Work</a></li>
<li><a role="menuitem" href="#">About</a></li>
</ul>
Code: Select all
<style>
#wb_ResponsiveMenu1 ul li.solidButton {background-color:#FF0000;}
</style>
Code: Select all
<label class="toggle" for="ResponsiveMenu1-submenu" id="ResponsiveMenu1-title">Menu<span id="ResponsiveMenu1-icon"><span> </span><span> </span><span> </span></span></label>
<input type="checkbox" id="ResponsiveMenu1-submenu">
<ul class="ResponsiveMenu1" id="ResponsiveMenu1" role="menu">
<li><a role="menuitem" href="#">Home</a></li>
<li class="solidButton"><a role="menuitem" href="#">Blog</a></li>
<li><a role="menuitem" href="#">Work</a></li>
<li><a role="menuitem" href="#">About</a></li>
</ul>
this menu has 8 menu items so the nth-child are from 1 to 8 depending wich number your menu item is on the row.How does one make 1st, 2nd 3rd etc. items change color ? the nth-child is very complicated stuff.
Code: Select all
/* with this you you can change each menu items background
The only downside of this is if you have sub items with the same number they also get that background color! */
}
#wb_CssMenu1 li:nth-child(4) {
background: #ad49d8;
}
#wb_CssMenu1 li:nth-child(5) {
background: #00334f;
}
#wb_CssMenu1 li:nth-child(8) {
background: #FF0000;
}
#wb_CssMenu1 li:nth-child(3) {
background: #FF0000;
}
/* with this you you can only change the first menu item background */
#wb_CssMenu1#wb_CssMenu1 li.firstmain {
color: #FFFFFF;
background: #4a7adb;
/* with this you have to change the class in html after publish each time you make changes to your pages which uses the menu! here it's made on the second menu item */
}
#wb_CssMenu1 ul li .solidButtonnav-link {
background-color: green;
}