random1 Posted January 23, 2010 Share Posted January 23, 2010 I have my stylesheet containing: * { font-size:62.5%; /* sets 1em = 10px */ } body { font-size:1.5em; /* sets default font size to 15px */ } I then have in my HTML tags within the body tag like 'p' and 'div' but these remain tiny (1em or 10px). How can I make it so that all content within the body tag inherits the font-size defined (1.5em)? Is there a better way of doing this? Quote Link to comment https://forums.phpfreaks.com/topic/189506-css-and-definition-font-size-inheritance/ Share on other sites More sharing options...
teamatomic Posted January 23, 2010 Share Posted January 23, 2010 Make sure that the body is the first thing in the style sheet file. HTH Teamatomic Quote Link to comment https://forums.phpfreaks.com/topic/189506-css-and-definition-font-size-inheritance/#findComment-1000526 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.