How to set font size using CSS Measurement Unit vmin?


To set font size with CSS Measurement Unit vmin, try to run the following code:

<html>
   <head>
   </head>
   <body>
      <div style = "position:relative;left:90px;top:3px;background-color:yellow;font-size: 4vmin;">
         This div has relative positioning.
      </div>
   </body>
</html>

Updated on: 30-Jan-2020

151 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements