SRM Posted December 17, 2014 Share Posted December 17, 2014 In the help topic for text-indent http://www.w3schools.com/cssref/pr_text_text-indent.asp I think you should add a note that text-indent is commonly used with "em" since that creates indentations that are relative to the chosen font size instead of being a fixed number of pixels. The "Play It" button for the "length" option should have a radio button for "1 em" and "2 em". http://www.w3schools.com/cssref/playit.asp?filename=playcss_text-indent I didn't know anything about "em" and had never seen it until someone else saw the difficulties I was having with trying to set fixed pixel sizes. Having that more on this tutorial page would have helped me. Link to comment Share on other sites More sharing options...
Ingolme Posted December 17, 2014 Share Posted December 17, 2014 ems are discussed in the CSS tutorial page about fonts:http://www.w3schools.com/css/css_font.asp Set Font Size With EmTo allow users to resize the text (in the browser menu), many developers use em instead of pixels.The em size unit is recommended by the W3C.1em is equal to the current font size. The default text size in browsers is 16px. So, the default size of 1em is 16px.The size can be calculated from pixels to em using this formula: pixels/16=em 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