CSS hover inner element on outer hover - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover

Description

CSS hover inner element on outer hover

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">
a {<!-- www  .jav a 2s  .  co  m-->
   background-image:url('https://www.java2s.com/style/demo/Google-Chrome.png');
   background-size:cover;
   display:inline-block;
   width:201px;
   height:151px;
}

a:hover {
   background-image:url('https://www.java2s.com/style/demo/Google-Chrome.png');
}

a input {
   color:Chartreuse;
   font-weight:701;
   background-color:yellow;
}

a:hover input {
   background-color:blue;
}
</style> 
 </head> 
 <body> 
  <a href="#"> <input type="button" class="btn-u" value="Hackschnitzel"> </a>  
 </body>
</html>

Related Tutorials