HTML CSS examples for CSS Widget:Menu Hover
HTML CSS Formatting a menu block/hover background
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .menu {<!-- w w w . ja v a 2 s .c o m--> clear:both; height:56px; background-color:Chartreuse; } .menu a { text-align:center; text-decoration:none; font-style:italic; color:yellow; padding:0 26px; line-height:56px; display:inline-block; } .menu a:hover { background-color:blue; } </style> </head> <body> <div class="menu"> <a href="#">Lorem ips</a> <a href="#">Lorem ipsum dolor</a> <a href="#">Lorem ipsum</a> <a href="#">Lorem ip</a> <a href="#">Lorem ip</a> <a href="#">Lorem ip</a> </div> </body> </html>