03-01-2018, 09:24 AM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Jan 2014
Device: kindle PW 2013
|
can I format horizontal rules?
I'm creating a book that includes horizontal rules (i.e. the <hr> tag). The rules are visible in my book but they are faint and I'd like to make them more noticeable.
I've tried adding the following to the style sheet: hr {height: 10px;} but the formating seems to be ignored. So my question is: has anyone succeeded in formatting horizontal rules in a kindle book, and if so, how? Thanks. |
03-01-2018, 11:26 AM | #2 |
Grand Sorcerer
Posts: 6,464
Karma: 25996225
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
You might embed an image.
|
03-01-2018, 12:44 PM | #3 |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
Posts: 3,002
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
In my Nadsat dictionary I use
Code:
<style> hr { border: white; background-color: #992211; height: 6px } ... </style> |
03-01-2018, 02:03 PM | #4 |
eBook Enthusiast
Posts: 85,544
Karma: 93383043
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
|
Moved to the Kindle Formats forum.
|
03-02-2018, 01:01 AM | #5 |
Obsessively Dedicated...
Posts: 3,200
Karma: 34977896
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
|
It probably depends on which format you are using.
If you are converting from epub to AZW3, yes you should be able to format your <hr> to be thicker (I have used as much as 8 pt.) But if you are converting to OLD Mobi, I think that will not honor any such styling. Anyway, when I ran a test conversion, my fat 6-pt <hr> turned out very anorexic, looking only like 1 pixel. You might try putting a second <hr> underneath the first so you have a very widely-spaced double line. Otherwise, for old Mobi, as Tomsem suggests, an image might be your best option. |
03-02-2018, 05:04 AM | #6 |
Junior Member
Posts: 4
Karma: 10
Join Date: Jan 2014
Device: kindle PW 2013
|
Works fine for me too. Thany you PoP.
|
03-02-2018, 05:12 AM | #7 |
Junior Member
Posts: 4
Karma: 10
Join Date: Jan 2014
Device: kindle PW 2013
|
I’m using kindlegen to convert from html to .mobi (I assume old mobi in your terms), then I email the doc for Amazon to convert
PoP’s code works fine for me. I don’t know why mine was deficient Thanks for responding. |
03-02-2018, 07:03 AM | #8 | |
Wizard
Posts: 1,539
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
You can do something like that by reducing the height of <hx>, <div> or <p> tag to 2 or 3px and then to style the upper and bottom border as you wish. Of course, all that only works with .kf8 (not old .mobi). Regards Rubén |
|
03-04-2018, 02:54 PM | #9 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Jan 2014
Device: kindle PW 2013
|
Quote:
|
|
03-07-2018, 10:33 PM | #10 | |
Bookmaker & Cat Slave
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
I would also mention that from time to time, we've seen border coding backfire in the iOS devices. I don't remember all of it, right off the top of my head, but...it seems to me that it's the one area, in iOS, where it's almost like you're still dealing with KF7, rather than the updated KF8 that iOS now displays pretty well. Offered solely FWIW...if someone comes along and has an issue, they'll know that they're not the only one. Hitch |
|
03-08-2018, 09:04 AM | #11 | |
Wizard
Posts: 1,539
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
It's good to be aware of what you said. Particularly, I didn't know about that "border behaviour" with Kindle under iOS. It's also very good to have an expert in Kindle like you in this forum since we can always learn something new. Regards Rubén |
|
03-09-2018, 02:21 PM | #12 | |
Bookmaker & Cat Slave
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
But thanks for the kind words. Hitch |
|
03-09-2018, 03:41 PM | #13 |
Wizard
Posts: 1,539
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ePub to MOBI - losing horizontal rules | StueyNZ | Conversion | 1 | 04-26-2012 06:09 PM |
How do I centre a horizontal rule? | AlexBell | ePub | 12 | 10-06-2010 03:09 AM |
keep the original design (horizontal) | ntrophy666 | Calibre | 1 | 01-02-2010 07:44 AM |
Help! Problem with Horizontal orientation | leif | Sony Reader | 2 | 09-15-2008 03:25 AM |
Horizontal white line | DrMoze | Sony Reader | 5 | 01-14-2008 10:57 AM |