Pavlos1316 Posted December 13, 2010 Share Posted December 13, 2010 Hello, I now that if I write font-size: 10px; I will get 10px fonts in all monitor sizes. Now... if I write font-size: 75%; I will get fonts 75% of what??? Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/221484-just-to-understand-font-size/ Share on other sites More sharing options...
doddsey_65 Posted December 14, 2010 Share Posted December 14, 2010 75% of the inherited font size. for example if you set: body { font-size: 10px; } p#my_p { font-size:50%; } my_p will be 50% font size of the inherited which is the main body. so <p> tag given the id of my_p will effectivly be displayed as 5px. Quote Link to comment https://forums.phpfreaks.com/topic/221484-just-to-understand-font-size/#findComment-1147097 Share on other sites More sharing options...
Pavlos1316 Posted December 14, 2010 Author Share Posted December 14, 2010 Thank you... I was starting to guess so... after of hours of testing. Thanks again. Quote Link to comment https://forums.phpfreaks.com/topic/221484-just-to-understand-font-size/#findComment-1147215 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.