Copy link to clipboard
Copied
Hi Guys. Im trying to figure out how can i change hyperlinks. I can change colour and size but i cant refuse the underline than i export to epub. Thanks for any kind of advice. Cheers
Copy link to clipboard
Copied
Hyperlinks are applied a character style called Hyperlink by default. Disable underline in that character style and all links will be fixed.
Copy link to clipboard
Copied
Thanks for the very quick response. But like im wrote, i did changed the caracter style. It worked perfect for colour and size but it do not working for refusing the underline.
btw: it seems to work with the ebook reeder from apple but its not working for google and the readerfrom acrobat
Copy link to clipboard
Copied
This is unfortunately a selective fix, Peter. How hyperlinks are displayed in EPUB readers is yet another aspect that is reader-dependent, just as some (mostly older, now) browsers would make links blue and underlined no matter what formatting was applied.
You can apply all styling in ID and using CSS, but the reader has the final say.
Copy link to clipboard
Copied
> but the reader has the final say.
Thanks, I didn't know that. That's not good behaviour I don't think.
Copy link to clipboard
Copied
If you disabled underline in the character style and the character style is applied to the hyperlinks and the hyperlinks are underlined, then the underline must somehow have been applied as a local override. You can undo that by searching for the character style, and removing the underline (i.e. apply -underline):
Copy link to clipboard
Copied
@James Gifford—NitroPress said: "You can apply all styling in ID and using CSS, but the reader has the final say."
Hi James,
indeed. The reader has the final say.
Usually text-decoration:none in the CSS should be sufficient.
But even if I see that already in the CSS of a cracked open reflowable EPUB the Thorium Reader or the Calibre ebook viewer will still do an underline.
So I did the following, I changed span.Hyperlink in the idGeneratedStyles.css from:
span.Hyperlink {
color:#22599b;
}
to:
span.Hyperlink {
color:#22599b;
text-decoration:underline;
text-decoration-color:rgb(255,255,255);
}
Well, that's a hack only, a white underline that is working with a white background.
The white underline will be visible if I change the viewer's theme from "Neutral" to e.g. "Night".
James, do you have an idea to turn it off in the EPUB viewer?
Regards,
Uwe Laubender
( Adobe Community Expert )
Copy link to clipboard
Copied
As you note I noted 🙂 it's all in the reader. Some are very "soft" and follow the code; others have very hard-coded highlighting or style.
Overriding both the default Hyperlink style (which plays hide and seek within ID anyway) and any overlay style sometimes combines to give some control. Often, the one factor that just cannot be removed is the underline, and second to that is that it will always be a blue underline, even under otherwise restyled code.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now