Thank you for your answer.
I am not sure posting a screenshot of the result would help, this is a web page (585K >96,000 words) being converted into an ebook. It contains over 200 links similar to the problematic link as described in the HTML code above and the CSS code is in an external file. The problem is all about the difference between how browsers render HTML and how book readers do it.
The problem is that in the example shown above and repeated below when clicking "H.L. Mencken" in the HTML 'link'
Quote:
<a href="#H.L._Mencken">H.L. Mencken</a>
|
the content within the html code below should show with a background silver colour but it shows with a default colour (black)
Quote:
<p id="H.L._Mencken">
September 12, 1880 - January 29, 1956<br>
Was an American journalist, satirist, cultural critic and scholar of American English.
</p>
|
Also, clicking the link should place the linked content at the top of the new window but it shows anywhere in that new window which is filled with other linked contents that precede and follow the linked content of interest and since each of these linked content is only 3 lines it is necessary to read the content of the whole window to find the few lines of interest.
The code has worked as expected for years under the browser and still does and it has been found valid html 5 with W3C HTML validator, so the problem is NOT the calling of the CSS file.
I hope this makes sense to you. If it does not, I can build 2 files that would reproduce the effect but I hope this is not necessary since often it confuses the issue by introducing new problems.
I was thinking about purchasing Calibre but am under the impression that if the only solution is to rewrite the lot (remove links and include linked content in place), then that removes a good part of the incentive to make the purchase.