Displaying menu over an image - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu

Description

Displaying menu over an image

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
.content {<!--from   ww  w .jav a  2  s . c om-->
   position:relative;
}

.menu {
   border:2px solid Chartreuse;
   background-color:yellow;
   position:absolute;
   padding:11px;
   display:none;
   top:0;
}

.content:hover ul {
   display:block;
}
</style> 
 </head> 
 <body> 
  <div class="content"> 
   <img src="https://www.java2s.com/style/demo/Safari.png"> 
   <ul class="menu"> 
    <li>Lorem </li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials