Overflow:hidden without an explicit height - HTML CSS CSS Property

HTML CSS examples for CSS Property:overflow

Description

Overflow:hidden without an explicit height

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">
body {<!--from www.jav  a2s.  co  m-->
   padding:11px;
}

img {
   float:left;
   margin-right:11px;
   position:absolute;
   left:11px;
}

div {
   border:2px solid Chartreuse;
   padding:11px;
   overflow:hidden;
   position:relative;
   padding-left:271px;
}
</style> 
 </head> 
 <body> 
  <div> 
   <img src="https://www.java2s.com/style/demo/Safari.png">Lorem ipsum dolor sit amet, consectetur adipiscing elit. M 
  </div>  
 </body>
</html>

Related Tutorials