Consider implementing a tooltip for your website design. Here is the suggested CSS code:
#tooltip {position: relative; display: block;}
#tooltip a span {display: none; color: #FFFFFF;}
#tooltip a:hover span {display: block; position: absolute;
width: 250px; background-color: #048042; left: 300px;
top: -10px; color: #FFFFFF; padding: 20px;
border: 4px solid #c4c3c3;}
#tooltipBottom {position: relative;}
#tooltipBottom a span {display: none; color: #FFFFFF; }
#tooltipBottom a:hover span {display: block; position: absolute;
width: 250px; background-color: #520e4e; left: 300px;
top: -300px; color: #FFFFFF; padding: 20px;
border: 4px solid #ffffff;
You can customize the position, size, borders, colors, and fonts to achieve the desired appearance.
Below is the HTML code snippet to include in your webpage:
<p id="tooltip"><img src="YOURIMAGE" /><a href="#"
style="text-decoration: none;"><img src="TOOLTIPIMAGE" alt=""
width="20" height="20" border="0" style="margin: 2px 0px 0px
2px" /><span>DESCRIPTION YOU WANT SHOWN</span></a></p>
This method of using tooltips does not require JavaScript and is versatile for text, images, and more. It has been successfully utilized for creating hover popups displaying scripture references for churches, such as John 3:16 showing the verse text.