|
|
#1 |
|
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Apr 2023
Device: Kindle Paperwhite
|
How to handle wrapping of two lines at the same time?
Hi everyone,
I'm trying to convert a collection of songs into an ebook for Kindle Paperwhite. The problem I am facing is that I don't know how to ensure that the line with lyrics will break with the line with chords. The belows picture should illustrate it. Before wrap: After wrap (and intended result): I tried several approaches, but the only one that seemed to be working was merging the two lines into a single table row and keep both the chords and song lyrics in individual cells. Sounds crazy, but works - the screenshots are actually from the Calibre ebook viewer, format EPUB. And no, I didn't write the HTML madness manually ![]() This is the CSS I use: Code:
td {
white-space: pre;
font-family: monospace;
display: inline-block;
border: 1px dotted gray;
}
I later read that tables are not ideal for layout. Would you recommend an alternative solution? Many thanks! |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| EPUB to PDF: hyperlinks that span lines make all of both lines clickable | metallserge | Conversion | 4 | 09-23-2021 07:39 AM |
| Is the numer of files limited Calibre can handle in a decent time? | Tarnung | Library Management | 4 | 06-16-2013 04:40 AM |
| PRS-950 Weird lines on the screen... now it's time to make a decision | anabolina | Sony Reader | 0 | 09-27-2012 09:54 PM |
| Touch Dark lines between lines of text | taming | Kobo Reader | 12 | 06-13-2011 08:20 PM |
| Line un-wrapping Factor | jjansen | Calibre | 6 | 08-18-2010 01:21 AM |