Overflow Hidden does not appear to be working - HTML CSS CSS Property

HTML CSS examples for CSS Property:overflow

Description

Overflow Hidden does not appear to be working

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">
.container {<!--from   ww  w .j a va2s  .c  o  m-->
   width:21px;
   overflow:hidden;
   white-space:nowrap;
}
</style> 
 </head> 
 <body> 
  <div class="container"> 
   <span>Lorem ipsum d</span> 
   <span>Lorem ipsum d</span> 
   <span>Lorem ipsum d</span> 
  </div>  
 </body>
</html>

Related Tutorials