salino2835 Posted December 1, 2014 Share Posted December 1, 2014 what would be the code if i want the font size to change depending on the screen size. Like i want the font size smaller on mobile devices so it'll fit thanks Link to comment Share on other sites More sharing options...
Ingolme Posted December 1, 2014 Share Posted December 1, 2014 You can search for media queries. Link to comment Share on other sites More sharing options...
salino2835 Posted December 1, 2014 Author Share Posted December 1, 2014 thanks, just what i needed Link to comment Share on other sites More sharing options...
danishwebindia Posted December 2, 2014 Share Posted December 2, 2014 (edited) 1em is equal to the current font size. The default text size in browsers is 16px. So, the default size of 1em is 16px.CSS Font - W3Schoolswww.w3schools.com/css/css_font.asp Edited December 2, 2014 by danishwebindia Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now