HTML CSS examples for CSS Widget:Menu Hover
Create vertical menu with hover highlight
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .main-content ul li a { padding:15px 23px; display:block; border:1px solid yellow; border-bottom: transparent; color:yellow; } .main-content ul li a:hover { border:1px solid #fff; color:#fff; } .main-content {<!-- ww w .j av a2 s .co m--> background: #161616; box-sizing: border-box; } </style> </head> <body> <div class="main-content"> <ul> <li> <a href="#">item one</a> </li> <li> <a href="#">item two</a> </li> <li> <a href="#">item three large</a> </li> <li> <a href="#">item four</a> </li> </ul> </div> </body> </html>