![]() |
Initials in Sigil
Hi people,
Thank you very much for accepting me. I am quite a newbie in creating ePubs in Sigil. A new big issue came from out of nowhere by controlling the output... I use big initials not only at the beginning of a chapter, but also in the middle of a chapter. Like a sub-chapter or so. I would like to treat them like a picture, so I close them by tags <div> and <span> and I am trying my best with the CSS styles. Everything works good till a page-break comes. The surrounding text is behaving in an uncontrollable way, it is either o.k., or the next <p> Is coming in front of a span and div with initial , or the initial stays on the previous page and the text goes to the next one. What I really want is the initial to stay always in front of the following paragraphs and to be sailed around by the text like a picture. But if the initial together with the surrounding paragraph doesn’t fit to the previous page, than I won’t them both to be pushed to the next page, initial always to be the first and the following paragraphs next to the initial, behind and beneath of corse, not vice versa... Any idea how to proceed? thank you very much in advance |
I suspect that asking in the Sigil forum or the Epub forum would be better.
I'm going to assume that what you are calling big initials are drop caps. Are you placing them inside the same block tag as the rest of the sentence. <p><img alt="A" class="initial_A" src="../Images/cap_A.jpg"/>ndthe rest of the sentence...</p> Personally I am not overly fond of drop caps since they are a total PITA to try to have look good over different platforms and screen resolutions. |
Quote:
|
1 Attachment(s)
Which CSS rules do you use ?
To make a "clean" Lettrin it is recommended to use "float: left;" HTML Code:
<p class="lettrine"><img class="lettrine" src="../Images/lettrine.png" alt="Rentai"/>raesent orci dui, pulvinar id convallis a, faucibus non mauris. Donec tellus augue, tempus sed facilisis sed, fringilla quis leo.</p>Code:
p {EDIT: Sorry for the lot of edit, but more I reread my text and more I find precision to make. |
Perhaps you can share your code, but I half suspect your issue is a mix of <div> within <p> (both being block elements) plus quirks of reflowability.
|
Hi friends,
Thank you very much for your answers, which I appreciate. At the end I am still sustaining by my old version which I simplified by cutting all doubling orders, divs etc. The result looks fine in all devices, what concerns with Drop Caps and making free space for next lines of text. The only annoying thing on the whole process is, that the first line with the Drop Cap is slightly lowered than expected, what is fine in the middle of a page, but looks weird on the top of a page, if two pages are next teach other. (computer or iPad - double pages view) Till now it is the best looking and safe version I ve ever found. I use the Paragraph class: p.class margin: 0 0 0 0; border: 0; width: auto; padding: 0 0 0 0.5rem; break-inside: avoid; page-break-inside: avoid; Inside a span.class which is actually the drop cap Span.class display: block; border: 0px solid blue; padding: 0rem 0 0rem 0rem; height: 3rem; color: #dd3210; margin: -0.8rem 0.2rem 0.6rem -0.2rem; text-align: left; font-size: 3rem; float: left; And at the end I use a space zero div with function: clear: both; |
| All times are GMT -4. The time now is 10:18 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.