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. 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. 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. 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
Archived
This topic is now archived and is closed to further replies.