View Single Post
Old 05-15-2015, 02:11 PM   #5
mattmc
Connoisseur
mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.mattmc can program the VCR without an owner's manual.
 
Posts: 89
Karma: 185923
Join Date: May 2015
Device: iPad 1/2/Air, K3/PW2/Fire1, Kobo Touch, Samsung Tab, Nook Color/Touch
Quote:
Originally Posted by miz sue View Post
Problem 1:
Each recipe is linked to the Content page. The headings were all blue, underlined links. I was able to change the css for the link to color:inherit and text-decorations:none. From there, I went to each subheading in the css and added color. This all worked great for epub. In the mobi, the links are still underlined but black (from the inherit). Can I get the headings to change color in the mobi same as I did in epub? Also, is there an easy way to remove the underline?
So the headings were blue and underlined, so you CSS'd them to be color:inherit and text-decoration:none. Then you went and re-CSS'd them to be color:blue or something? I don't totally get what you mean.

"In the mobi, the links are underlined, but black." Don't you want them to be black? I'm confused. Sorry

In any case, removing underlines from MOBI files is something I'd looked into quite a bit. You'll notice that KF8 doesn't really respect CSS like a{text-decoration:none}. I had to inline it and mark it important, like <a href="..." style="text-decoration:none !important">Link</a>.

Also, I know that readers that use KF7 are fast waning, but the way to remove underlines in that older format is with a special tag <mpb:nu>, like <a href="..."><mbp:nu>Link</mbp:nu></a>.

I ended up writing a script that processes my ePub to add this stuff in, before I send it to KindleGen.

EDIT: If you're Javascript-savvy, I can give you the script and you could bend it to your needs.

Last edited by mattmc; 05-15-2015 at 02:19 PM.
mattmc is offline   Reply With Quote