Hover to split div - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover

Description

Hover to split div

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">
ul {<!-- ww  w. j a  v  a 2 s. co m-->
   text-align:center;
   font-size:16px;
   font-family:arial, sans-serif;
   line-height:33px;
   margin:0 auto;
   padding:0;
   width:301px;
   background:Chartreuse;
   list-style:none;
   border-radius:3px;
}

ul:active {
   background:yellow;
}

ul li {
   display:block;
   color:blue;
   position:relative;
   width:100%;
   height:100%;
}

ul li ul {
   padding:0;
   position:absolute;
   left:0px;
   right:0px;
   top:0px;
   bottom:0px;
   display:none;
}

ul li:hover ul {
   display:block;
}

ul li ul li {
   display:block;
   width:51%;
   float:left;
}

ul li ul li a {
   text-decoration:none;
   color:pink;
   text-shadow:0 -2px 0 OrangeRed;
   display:block;
   height:100%;
   width:100%;
   background-color:grey;
   box-shadow:0px 0px 2px 2px white inset;
}

ul li ul li a:hover {
   background-color:BlueViolet;
}
</style> 
 </head> 
 <body> 
  <ul> 
   <li>Lore 
    <ul> 
     <li> <a href="">Lore</a> </li> 
     <li> <a href="">Lore</a> </li> 
    </ul> </li> 
  </ul>  
 </body>
</html>

Related Tutorials