View Single Post
Old 03-21-2022, 12:01 AM   #8
rcentros
eReader Wrangler
rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.rcentros ought to be getting tired of karma fortunes by now.
 
rcentros's Avatar
 
Posts: 7,894
Karma: 52566355
Join Date: Mar 2013
Location: Boise, ID
Device: PB HD3, GL3, Voyage, Clara HD
Quote:
Originally Posted by Turtle91 View Post
theducks' suggestion will certainly work, and answers your question. However, if you are going to be fixing the headers anyway, might I recommend a different solution than using the blank lines and trying to set margins for a blank line??

Try using css to give your headings the spacing you desire instead of the blank lines around them. You will have exact control of the spacing rather than trying to guess with extra blank lines...they may not end up looking the way you expect on some readers/devices.

Code:
h3 {margin:1.2em auto; text-indent:0; text-align:center; font-family:serif}

<h3>Chapter 1</h3>


<p class="first">This is the first paragraph.</p>
<p>This is the second paragraph.</p>
<p>This is the third paragraph.</p>
etc.
You can certainly do that manually... although it might take more time than using a few simple regex find/replace.

Cheers!
Thanks. But I'm quite sure how I could apply this to all blank lines. Currently I'm only using one blank line between groups of paragraphs with no blank lines. But I'm having trouble finding any specific class name for those blank lines.

I've tried changing the line height of the headers (by hand) in my word processor (and then deleting the blank lines) and that seems to work but, when I see the results, I think maybe I don't need to do this at all, as it looks fine "as is" in most eReaders — except the Kobos aren't allowing me to adjust line height (so this is another issue). (Why do Kobos have to be so darn picky? )

At any rate, thanks. I probably missed the gist of what your were saying and I apologize for that.

Last edited by rcentros; 03-21-2022 at 12:09 AM.
rcentros is offline   Reply With Quote