HTML CSS examples for CSS Widget:Font
Css font-size in % percentage
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> html {<!-- w w w . j a v a 2 s . co m--> font-size:63.6%; } body { font-size:2em; } @media (max-width: 300px) { html { font-size:71%; } } @media (min-width: 500px) { html { font-size:81%; } } @media (min-width: 700px) { html { font-size:121%; } } @media (min-width: 1200px) { html { font-size:201%; } } </style> </head> <body> Lorem ipsum dol </body> </html>