Syntax error How to set font size using CSS Measurement Unit vmin?

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

220 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements