Comment on I wish I could read Wikipedia like thisparentComments−assaflavieOP12yVery true. I got a rough POC of this, implemented using the technique in this answer: http://stackoverflow.com/a/22816419/11208(just with divs instead of images)It's very brittle though. It relies on knowing the line-height, calculating the line in which the highlighted word sits, accounting for the existence of vertical scroll-bars... not trivial.−3rd312yAh, that was surprisingly easy: http://jsfiddle.net/5p92U/Or am I missing something?Edit: Yes, I do. It does not work together with images on the right side: http://jsfiddle.net/Nup2F/
Comments
Very true. I got a rough POC of this, implemented using the technique in this answer: http://stackoverflow.com/a/22816419/11208
(just with divs instead of images)
It's very brittle though. It relies on knowing the line-height, calculating the line in which the highlighted word sits, accounting for the existence of vertical scroll-bars... not trivial.
Ah, that was surprisingly easy: http://jsfiddle.net/5p92U/
Or am I missing something?
Edit: Yes, I do. It does not work together with images on the right side: http://jsfiddle.net/Nup2F/