|
|
#1 |
|
Connoisseur
![]() Posts: 53
Karma: 10
Join Date: Aug 2012
Location: Nashville, Tn
Device: ipad, Kindle Fire
|
Indent other than em
Code:
<p style="text-indent:1.5em;"></p> |
|
|
|
|
|
#2 |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 100
Karma: 41738
Join Date: Jul 2012
Device: Nook
|
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. |
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,140
Karma: 2474345
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon
|
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.
|
|
|
|
|
|
#4 | |
|
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 100
Karma: 41738
Join Date: Jul 2012
Device: Nook
|
Quote:
|
|
|
|
|
|
|
#5 |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,209
Karma: 13801264
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
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.
__________________
|
|
|
|
|
|
#6 | ||
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,140
Karma: 2474345
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon
|
Quote:
Quote:
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. |
||
|
|
|
|
|
#7 | ||||
|
Connoisseur
![]() Posts: 53
Karma: 10
Join Date: Aug 2012
Location: Nashville, Tn
Device: ipad, Kindle Fire
|
Quote:
Quote:
Quote:
Quote:
|
||||
|
|
|
|
|
#8 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,823
Karma: 23146860
Join Date: Jan 2010
Device: Kindle Fire HD, Kindle 2
|
What validator are you using? Whether or not you use ems is completely up to you, but em indents certainly shouldn't have any validation issues.
__________________
“Politics: A strife of interests masquerading as a contest of principles. The conduct of public affairs for private advantage.” |
|
|
|
|
|
#9 | |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,209
Karma: 13801264
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
Quote:
Code:
text-indent: 1.2em;
__________________
|
|
|
|
|
|
|
#10 |
|
Connoisseur
![]() Posts: 53
Karma: 10
Join Date: Aug 2012
Location: Nashville, Tn
Device: ipad, Kindle Fire
|
Found out why it was kicking out all indents. The client had wrote the .html file as
Code:
<p style="text-indent:1.5em;">text text<p>text text text<p>more text than</p> |
|
|
|
|
|
#11 |
|
Mobile Reader Geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 34,209
Karma: 13801264
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
|
That's not even valid code.
__________________
|
|
|
|
|
|
#12 |
|
Connoisseur
![]() Posts: 53
Karma: 10
Join Date: Aug 2012
Location: Nashville, Tn
Device: ipad, Kindle Fire
|
I know thats not valid code.
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with indent | mangosteen | Conversion | 0 | 07-19-2012 02:13 AM |
| indent control | cybmole | Conversion | 18 | 02-18-2011 11:12 AM |
| hanging indent | Oldpilot | Sigil | 2 | 11-13-2010 06:20 AM |
| Too much left indent! | Barty | Amazon Kindle | 12 | 11-09-2010 02:43 PM |
| Paragraphs and indent | mrmikel | Calibre | 33 | 01-10-2009 05:37 PM |