Show URL when hovering and holding control key?

User Help for Mozilla Thunderbird
Posts: 17
Joined: September 26th, 2012, 8:07 am

Post Posted September 26th, 2012, 8:19 am

The following is the contents of my userContent.css for Thunderbird. It's purpose is to display a little balloon showing the URL of a link when hovered over. It works well but I would like to modify its functionality by having it only work when the control (or shift) key is held down. Anyone know how to do this? Thank you

/* show url beneath link when hovering over link */
a[href]:hover {
text-decoration: none !important;
a[href]:hover:after {
display: block;
position: relative;
border-radius: 10px;
content: attr(href);
padding: 1px 10px;
font-size: 15px !important;
font-family: sans-serif !important;
text-align: left !important;
background-color: #555 !important;
color: #EEE !important;


User avatar
Posts: 38232
Joined: October 19th, 2007, 1:53 am
Location: The South Coast of N.S.W. Oz.

Post Posted September 26th, 2012, 8:29 am

Moving this to Thunderbird Support...
Ancient Amateur Astronomer
Win-7-HP/IntelĀ® DualCore-2.0GHz/500G HDD/4 Gig Ram/550Watt PSU/350WattUPS/Firefox-20.0-57.0/T-bird-
RadioYachting. (Always choose the "Custom" Install.)

Posts: 3664
Joined: September 15th, 2010, 9:03 am

Post Posted September 26th, 2012, 9:12 am

Mozilla doesn't have a "keypress" pseudo-selector, so you'd need something in javascript. One was is to add a little script to put an attribute or class on the element when the right conditions are met (mouseover plus ctrl key?) and then let CSS do the rest.

Return to Thunderbird Support

Who is online

Users browsing this forum: Bing [Bot], Google Adsense [Bot] and 3 guests