![]() |
blank line
I was just wondering if anyone knew how to insert blank lines into a document (e.g. a blank line between the chapter title and the start of the text).
They stay up in sigil but when I look at it in adobe reader they're gone. They also disappear in calibre too. Any help would be great! |
Try <b />.
|
In the XML...
Code:
<h2 class="chapter">Chapter One</h2>Code:
.chapter { |
I like to use a CSS method similar to what JSWolf suggested. It seems a lot cleaner to me than having empty p, div tags cluttering things up or lot's of extra br's laying around. It would probably be part of my default "first paragraph of a chapter" class.
Code:
.first-para { |
Quote:
BR may not exist naked but must exist within a P, DIV or H# tag pair. Also many rendering programs will ignore when repeated: <br /> <br /> There must be a printing character between. Wolf man's margin solution is more elegant in most cases. <h2 class="chapter">Chapter 100 <br />A Century of Great Examples</h2> for a 2 line chapter title that will appear as a single TOC entry in a Sigil generated TOC |
Use CSS, as suggested above the above.
If you go about adding an empty line here, you'll have to add an empty line at every chapter. And when you decide you'd rather have two empty lines, you'll have to add another empty line at each and every chapter. Etc. In "theatre" literacy, it would be the difference between : "I am Michael, and you-the-public can hear I'm talking softly now that I turn around to face my beloved and tell here ĞI love youğ" And MICHAEL (Talking softly) - I love you. |
Quote:
Code:
h2 {Also, I prefer indented paragraphs in the body of the text with the first paragraph not indented. Since I have to style the first paragraph anyway, to change the indent, I use DiapDealer's method of adding space before the first paragraph instead of after the H2 heading, again prefering em units. |
I prefer fixed spacing in those sort of situations. A section break space gets 30px from me. That way they don't change based on the font size. They stay the same. And they look better at the fixed sizes I've chosen.
|
30px will look much different on an eInk device (~167ppi) than it will on, say, the new iPad.
|
Quote:
|
Thanks for all the help.
I'm completely new to CSS so I couldn't really understand how to change the styles so I just went with manually adding the gaps after the chapter headings: <p> </p>. I tried using the <br /> but when I opened the file in calibre it didn't convert. Does anyone know any good sites/guides that could help me get started with CSS coding? It's be great to understand it a little bit. |
|
Quote:
|
| All times are GMT -4. The time now is 09:17 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.