View Single Post
Old 01-17-2011, 10:43 AM   #7
Danger
Evangelist
Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.
 
Danger's Avatar
 
Posts: 490
Karma: 1665031
Join Date: Nov 2010
Location: Vancouver Island, Nanaimo
Device: K2 (retired), Kobo Touch (passed to the wife), KGlo, Galaxy TabPro
Quote:
Originally Posted by neonbible View Post
You were right, it does look a bit odd without. At least it does when there isn't a blank space between each paragraph. I did employ Danger's solution for modifying the CSS and setting the text-indent to 0. Tried it but decided to put the indent back in via Calibre's conversion to a smaller indent of 1em.

The main problem is just with block quotes where there shouldn't be any indents.
All my paragraphs are set to indent 1em but for those special blocks of text that shouldn't have an indent I use a separate css class that overrides the text-indent of the paragraph.

example css:
p { text-indent: 1em; text-align: justify;}

.no-indent { text-indent: 0; }

example html:
<p>this paragraph is indented..... blah blah more text etc....</p>

<p class="no-indent">This paragraph is special and requires no indenting.</p>

Actually I usually add a margin of 1em to the right & left, as well, to offset that special paragraph. So instead of the first line being indented, that whole block is offset by 1em instead.

.no-indent { text-indent: 0; margin: 0 1em 0 1em; }
Danger is offline   Reply With Quote