View Single Post
Old 10-31-2014, 04:52 PM   #7
DomesticExtremis
Addict
DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.DomesticExtremis ought to be getting tired of karma fortunes by now.
 
DomesticExtremis's Avatar
 
Posts: 243
Karma: 359054
Join Date: Nov 2012
Device: default
Quote:
Originally Posted by Julanna View Post
No, not highlight when the link itself is hovered over. It the linked *to* text I want the highlight. The 'span id' part. I've got this horrid feeling it's not CSS that does that, it's javascript. I hope not! I'll have to try to hunt up a web page that does it as an example.

And yeah, it won't be relevent to e-ink, but those who read it on things where you could use a mouse or touch screen should find it useful.
Well, the pseudo selectors aren't restricted to the <a> tag.

I'm not sure which ones are appropriate, but you might try something like:

Quote:
.hl:visited { background-color: #ff0000; }


<a href="#IsaacWoolley">Woolley, Isaac</a> and <span class="hl" id="IsaacWoolley">Isaac Woolley</span>

Last edited by DomesticExtremis; 10-31-2014 at 04:55 PM.
DomesticExtremis is offline   Reply With Quote