06-14-2024, 05:52 PM | #1 |
Junior Member
Posts: 1
Karma: 10
Join Date: Jun 2024
Device: none
|
Creating a line under chapter number
Hi, I need help. I am still learning Calibre. To create an elegant, small line between my chapter number and my character’s name at the chapter opener, is it better to use a png of a small line, or is it ok to use a Bergamot Ornament typeface?
Selecting the tilde ~ gives a nice little line in Bergamot Ornament. But I’m worried that all epub readers will strip out the Bergamot Ornament typeface. I see these lines with tapered ends in other epubs. Are they using images? Thanks!! |
06-14-2024, 06:08 PM | #2 |
Wizard
Posts: 1,357
Karma: 6794938
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
There are various methods, but it depends on...
1. What type of line you are wanting. Just a simple straight line, or some type of ornamental Fleuron? 2. Which ereader will you be reading it on? Maybe post a screenshot of what you want it to look like. |
Advert | |
|
06-14-2024, 09:35 PM | #3 |
Well trained by Cats
Posts: 30,445
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Or simple, basic CSS ways
Keywords: <hr /> text-decoration: underline (see the 'box model' theory for understanding) border-bottom padding-bottom |
06-16-2024, 05:19 AM | #4 |
the rook, bossing Never.
Posts: 12,360
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
And css can have width: 30%; like on an <hr class="small" />
|
06-16-2024, 10:56 AM | #5 |
Well trained by Cats
Posts: 30,445
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
Advert | |
|
06-16-2024, 12:21 PM | #6 | |
the rook, bossing Never.
Posts: 12,360
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Quote:
Then no margin-left is needed, but yes the math approach is reliable. Of course maybe the line isn't wanted to be centred, but margin-left: 1.5em;. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Creating headers from parent chapter and not section | shlomikalfa | Conversion | 1 | 06-05-2021 06:57 AM |
Number of pages in a chapter | Ashjuk | Sigil | 13 | 12-31-2020 12:59 PM |
Creating Chapter Divisions with Plain Text Files | KitsuneStylinson | Conversion | 6 | 09-02-2012 10:57 AM |
Creating an empty line - which way is better? | NASCARaddicted | ePub | 4 | 10-31-2011 06:24 AM |
Ebook chapter titles: with or without chapter number? | amoroso | Writers' Corner | 16 | 06-14-2011 07:35 AM |