Jump to content
Sign in to follow this  
SRM

text-indent help topic should encourage awareness of "em" more

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...