Css overflow visible and z-index - HTML CSS CSS Property

HTML CSS examples for CSS Property:overflow

Description

Css overflow visible and z-index

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <title>Lorem ipsum dolor sit amet, cons</title> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
body {<!--  ww w.  ja  v a  2 s .c  om-->
   background:Chartreuse;
}

.wrapper {
   white-space:nowrap;
}

.wrapper .field {
   width:100px;
   overflow:hidden;
   display:inline-block;
}

.wrapper .field:hover {
   position:relative;
   overflow:visible;
}

.wrapper .field span {
   background:yellow;
}
</style> 
 </head> 
 <body> 
  <div class="wrapper"> 
   <span class="field"> <span>Lorem ipsum dolor sit amet, consectetur adipiscing </span> </span> 
   <span class="field"> <span>Lorem ipsum dolor sit amet, consectetur adipiscing </span> </span> 
  </div>  
 </body>
</html>

Related Tutorials