![]() |
#16 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
|
Quote:
|
|
![]() |
![]() |
![]() |
#17 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
|
I don't think it matters what it's called, really, I put an example of what I was asking about so it was clear what I needed. Text break, scene separator, marker between 2 parts. I've just ended up putting the 'design' I wanted as text rather than in the code. Not worth the headache.
Thank you all for your help & suggestions |
![]() |
![]() |
![]() |
#18 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#19 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
|
Quote:
I'm glad if the suggestions help others, but I want it set up as shown in my opening post so it looks like the following (centered of course). The few I tried were either not what I wanted, or didn't work on my Kobo *~=^;^=~* London, England June 1873 *~=^;^=~* I'm not nearly so picky when there's no 'description' of place/time/person or what-have-you |
|
![]() |
![]() |
![]() |
#20 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 498
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
|
But if it's bothersome, I can change the title to scene change instead of text break if you tell me how
|
![]() |
![]() |
![]() |
#21 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,037
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
There are two ways:
1) Multiple CSS for first line, middle lines and last line 2) A single CSS for one paragraph 1) This allows total control, and is similar to how a verse of poetry is done, except it uses text-align: left and a left margin etc. <p class="break-start">*~=^;^=~*</p> <p class="break-body">London, England</p> <p class="break-body">June 1873</p> <p class="break-end">*~=^;^=~*</p> 2) This is inflexible because the line spacing is defined by font or user: <p class="scene-break">*~=^;^=~*<br /> London, England<br/> June 1873<br/> *~=^;^=~*</p> CSS (assumes default & padding CSS for p, body or html is 0) .break-start { text-align: center; margin-top: 0.5em; /* or whatever */ } .break-body { text-align: center; margin-top: 0.2em; /* or whatever, or missing or 0 */ margin-bottom: 0.2em; /* or whatever, or missing or 0 */ } .break-end { text-align: center; margin-bottom: 0.5em; /* or whatever */ } .scene-break { text-align: center; margin-top: 0.5em; /* or whatever */ margin-bottom: 0.5em; /* or whatever */ } Do not put line-height as that disables user GUI line spacing, use margins. Without a line-height set the font metrics set the line spacing, unless user overrides. Don't set left and right margins on anything using text-align: center; Padding mostly not needed as it is for top or bottom of a page or maybe some other container. Top and bottom margin set spacing between lines, added to default line spacing. Both margin-top: 0; and margin:0; means use default font or user line spacing, not zero space. The last line before } need not have a ; Last edited by Quoth; 01-28-2023 at 07:39 AM. |
![]() |
![]() |
![]() |
#22 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,756
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Convert text formating from CSS to HTML | abraum | Sigil | 6 | 01-14-2022 08:51 AM |
Comparison of supported html and css tags in various ebook formats | GrannyGrump | Workshop | 2 | 07-11-2016 09:33 PM |
List of all (currently) supported CSS properties | ribik | Library Management | 5 | 08-26-2014 07:34 AM |
Bug converting html css text-indent and left-margin | bhoyt | Conversion | 15 | 01-24-2014 07:28 PM |
Supported HTML/CSS tags and properties | Jellby | Bookeen | 9 | 05-04-2008 04:55 PM |