Set font-size: medium - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Font

Description

Set font-size: medium

Demo Code

ResultView the demo in separate window

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

#mediumBlock
 {
   font-size:medium;
}

#remBlock
 {
   font-size:2rem;
}

#halfRemBlock
 {
   font-size:0.6rem;
}
</style> 
 </head> 
 <body> 
  <div id="inheritedBlock">
    Lorem ipsum dolor 
  </div> 
  <div id="mediumBlock">
    Lorem ipsum dol 
  </div> 
  <div id="remBlock">
    Lorem ipsum 
  </div> 
  <div id="halfRemBlock">
    Lorem ipsum dol 
  </div>  
 </body>
</html>

Related Tutorials