Hover a div and moves another div - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover

Description

Hover a div and moves another 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">
#ticket {<!--   ww  w .j  av a2  s. com-->
   height:301px;
   width:100%;
   position:relative;
}

#entry {
   float:right;
   height:201px;
   width:100%;
   background:white;
   border:2px solid Chartreuse;
   border-radius:16px;
   position:relative;
}

#entry:hover {
   margin-top:-31px;
   margin-bottom:31px;
}

#shadow {
   margin-top:-161px;
}
</style> 
 </head> 
 <body> 
  <section id="ticket"> 
   <div id="wrap_960"> 
    <div id="entry"></div> 
    <img id="shadow" src="https://www.java2s.com/style/demo/Opera.png"> 
   </div> 
  </section>  
 </body>
</html>

Related Tutorials