View Single Post
Old 10-09-2012, 12:28 PM   #7
curiousgeorge
Connoisseur
curiousgeorge began at the beginning.
 
Posts: 53
Karma: 10
Join Date: Aug 2012
Location: Nashville, Tn
Device: ipad, Kindle Fire
Quote:
Originally Posted by Tex2002ans View Post
I believe all of these units can be used:

http://www.w3schools.com/cssref/css_units.asp

The most commonly used units are em, px, and % (same as em. 1em=100%, 1.5em=150%). In ebooks, using em is the recommended way.

Also, hopefully you are aware of CSS styling instead of inline.

More information can be found here:

http://wiki.mobileread.com/wiki/CSS

Using CSS is a much preferred method to styling web pages/books because it provides an easy one stop shop for the entire formatting of your book.
thanks for the info. This was an ebook I was correcting for someone and Ive never used ems before but was under the impression they were used for font height


Quote:
Originally Posted by Jellby View Post
Percents and ems are only equivalent when they're used in font sizes (or in line-height, I believe). In margins, indents, widths, etc. they are two very different things. Percent values are measured relative to the container block's width (generally), while ems are referred to the current font size.
thanks for the validation


Quote:
Originally Posted by JSWolf View Post
Never use a percent for an indent because the size of the indent will change based on the size of the screen. Em is appropriate because it won't change based on the screen size. 1.2em is a very good value to use. Not too little and not too much. 1em is too small and 1.5em is too much.
well the em is not approaiate because the ebook will not validate based on the em indent


Quote:
Originally Posted by Jellby View Post
So what? It won't change with font size, and maybe that's what the creator wants.



But it will change with font size, and depending on the screen/font ratio it may be too large or too small.

I prefer ems too (for me, that is, for the settings I use and for my taste, 1em is not too small), but let others test and decide for themselves. Just remind them that screen sizes can be changed (by changing device, or changing the screen orientation, or changing the margins), and that font sizes can be changed, so relative indents can change too.
thanks for the post
curiousgeorge is offline   Reply With Quote