View Single Post
Old 02-26-2017, 11:33 PM   #1
SigilBear
Banned
SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.
 
Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
Highlighting Anchored Text

Imagine clicking a link in an index, and it takes you to page 423, but you have to spend a few seconds looking for the precise reference.

Is there some sort of trick with CSS or whatever that would somehow highlight the anchored text when someone visits it via a hyperlink? For example, the sentence below might display in bold text or the color red when someone links to it...

Code:
<span id="bear">Brown bears are native to the Northern Hemisphere.</span>

(INDEX)
Bears, brown, range, <a href="#bear">423</a>
Thanks.

EDIT: I just realized this won't be a good idea if I'm going to insert ID's other elements, like <p id="ox">.

Last edited by SigilBear; 02-26-2017 at 11:47 PM.
SigilBear is offline   Reply With Quote