HTML CSS examples for CSS Widget:Menu
Div Css Menu with images
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #section5, #section6 {<!-- w ww.j a v a 2 s. co m--> width:701px; height:401px; float:none; padding-left:2px; padding-top:2px; font:16px/31px sans-serif clear: left; margin-left:182px; border:2px solid Chartreuse; border-bottom:6px solid yellow; } #left1, #right1 { width:50%; float:left; } #left1 { margin-right:2px; border:2px solid blue; box-sizing:inline-block; } #right1 { box-sizing:border-box; width:49%; height:100%; border:2px solid pink; } #nav1, #nav2 { font:16px/31px sans-serif; height:31px; width:171px; display:inline-block; line-height:31px; background-color:OrangeRed; float:left; padding-right:11px; border-right:3px solid grey; } #nav1, #nav2 { clear:left; } a1 { border-right:0px solid BlueViolet; border-top:0px solid Chartreuse; color:yellow; display:block; text-align:left; padding-left:11px; text-decoration:none; width:171px; font:16px/31px sans-serif; height:31px; } a1:hover { background:blue; color:pink; } a { border-right:0px solid OrangeRed; border-top:0px solid grey; color:BlueViolet; display:block; text-align:left; padding-left:11px; text-decoration:none; width:201px; font:16px/31px sans-serif; height:31px; } a:hover { background:Chartreuse; color:yellow; } #section5 { display:none; } #nav1:hover~#section5, #section5:hover { display:block; } #section6 { display:none; } #nav2:hover~#section6, #section6:hover { display:block; } </style> </head> <body> <div id="nav1"> <a1 href="#"> Lorem ipsu </a1> </div> <div id="nav2"> <a1 href="#"> Lorem ipsu </a1> </div> <div id="section5"> <div id="left1"> <a href="#">Lorem ipsum do</a> <a href="#">Lorem ips</a> <a href="#">Lorem ips</a> <a href="#">Lorem ipsum do</a> <a href="#">Lorem ipsum dolor</a> </div> <div id="right1"> <p> <img src="https://www.java2s.com/style/demo/InternetExplorer.png" alt=""> <a href="">Lorem ipsum dolor sit amet</a> </p> </div> </div> <div id="section6"> <div id="left1"> <a href="">Lorem ips</a> <a href="">Lorem ips</a> </div> <div id="right1"> <p> <img src="https://www.java2s.com/style/demo/Safari.png" alt=""> </p> </div> </div> </body> </html>