Override font size in a DIV using CSS - HTML CSS CSS Property

HTML CSS examples for CSS Property:font-size

Description

Override font size in a DIV using CSS

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <title>Lorem ipsum dolor sit amet, consectetur adip</title> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
.htmlContents * {<!-- w w w  .ja  v  a2s  .  c  om-->
   font-size:11px!important;
}
</style> 
 </head> 
 <body> 
  <div class="htmlContents"> 
   <p>Lorem ip<strong>Lorem ipsum dolo</strong> </p> 
   <p> &nbsp;</p> 
   <p> <span style="font-size:12px;">Lorem ipsum dolor sit am</span> </p> 
  </div>  
 </body>
</html>

Related Tutorials