HTML CSS examples for CSS Property:font-size
Div as the font-size
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> * {<!--from ww w . java2 s.co m--> margin:0; padding:0; border:0; overflow:hidden; vertical-align:baseline; } div { background-color:Chartreuse; line-height:100%; } </style> </head> <body> <div style="font-size: 16px;"> Lorem ipsum </div> <br> <div style="font-size: 20px;"> Lorem ipsum </div> <br> <div style="height:16px; font-size: 16px;"> Lorem ipsum </div> <br> <div style="height: 20px; font-size: 20px;"> Lorem ipsum </div> <br> </body> </html>