HTML CSS examples for CSS Widget:Menu sub menu
CSS navigation submenu and seperator
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> ul {<!-- w ww . ja v a 2 s . c o m--> overflow:hidden; background:green; } li:first-child { padding-left:0; } li { padding-left:4px; float:left; background:red; } li a { float:left; line-height:41px; padding:0 16px; background:yellow; } li a:hover { background:purple; } </style> </head> <body> <ul> <li> <a href="#">Lorem </a> </li> <li> <a href="#">Lorem </a> </li> <li> <a href="#">Lorem </a> </li> </ul> </body> </html>