HTML CSS examples for CSS Widget:Menu
Changing background and font color for alternate menus
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> li:nth-child(odd) { background:black; } li>a { color:Chartreuse; } li:nth-child(odd)>a { color:yellow; } </style> <!--from w w w .j a va2 s . co m--> </head> <body> <ul data-role="listview" data-inset="true"> <li> <a href="#about">Lorem ipsum do</a> </li> <li> <a href="#subjects">Lorem ip</a> </li> <li> <a href="#promises">Lorem ipsum </a> </li> <li> <a href="#prayerHelp">Lorem ipsum</a> </li> <li> <a href="#living">Lorem ipsum dolor sit a</a> </li> <li> <a href="#information">Lorem ipsum</a> </li> </ul> </body> </html>