I stumbled upon the Pure CSS Tooltips (data-tooltip) feature showcased at
http://www.frequency-decoder.com/demo/css-tooltips/
, and I am eager to implement it on a specific area of an image map in a rectangular shape. However, despite finding a JavaScript code snippet that somewhat works, I have been struggling to integrate the "Pure CSS Tooltips (data-tooltip)" functionality seamlessly with my image map area.
<style type="text/css">
body {
background-image: url(background.gif);
text-align:center;
font-size:14px;
line-height:1.4;
font-weight:normal;
font-family:cambria,georgia,times,serif
}
/* Make tooltip "links" have a different pointer */
[data-tooltip] {
cursor:pointer !important;
}
/* Styles for elements having a data-tooltip attribute */
*[data-tooltip] {
position:relative;
cursor:help;
text-decoration:none;
border-bottom:1px dotted #aaa;
}
/* Default :before & :after values */
*[data-tooltip]:after,
*[data-tooltip]:before {
content:"";
opacity:0;
z-index:999;
...
...
}
/* Tooltip arrow - shown on hover or focus */
*[data-tooltip]:hover:before,
*[data-tooltip]:focus:before {
...
...
}
...
...
</style>
I've shared the necessary HTML and CSS codes along with the image map coordinates, but alas, I still can't achieve the desired outcome. Hopefully, someone skilled in this domain can swiftly resolve my dilemma before time runs out. Rest assured, I am more than willing to credit my savior within the HTML scripts of my website pages.