Height:auto interact with line-height:0 and different font-size - HTML CSS CSS Property

HTML CSS examples for CSS Property:font-size

Description

Height:auto interact with line-height:0 and different font-size

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  www  . ja  v a  2  s.  co m-->
   background:Chartreuse;
   line-height:2px;
   margin:100px 0;
}

#content {
   border:2px solid;
}

.big {
   font-size:100px;
}
</style> 
 </head> 
 <body> 
  <div id="container" class="big">
    Lorem 
  </div>  
 </body>
</html>

Related Tutorials