I am currently developing a Browser Helper Object (BHO) for Internet Explorer that involves searching for specific words on a web page and encasing those words in an HTML tag for styling purposes.
While I have code in place that allows me to change the style properties when hovering over the tag, my goal now is to display a "box" around the word without moving the text from its original position.
To better illustrate my point, I have created an image showing the desired effect (imagine the word "Overflow!" within its own HTML tag):
The first picture depicts the initial state, while the second shows what happens when the mouse hovers over the word!
If anyone has any suggestions on how to solve this particular challenge - whether through Javascript or CSS styling - I would greatly appreciate it.