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: 2020-01-30T08:43:49+05:30

196 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements