Get font size using calc function - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Font

Description

Get font size using calc function

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <title>Lorem ipsum dolor sit amet, consectetur adipiscing </title> 
  <style>
#a {<!--from   www  .  jav  a2 s  . c o m-->
   font-size:calc(41px - 3vw);
}
</style> 
 </head> 
 <body translate="no"> 
  <div id="a"> 
   <b>Lorem ipsum dolor sit amet, consectetur adipiscing </b>Lorem ipsum 
  </div>  
 </body>
</html>

Related Tutorials