I'm trying to copy the CSS on those "documentation" pages of those projects such as bootstrap where when you hover on anchor link(s) it would show you a certain icon
a {
font-weight: bold;
font-size: 20px;
color: #000000;
text-decoration: none;
}
/* mouse hover link */
a:hover {
background: url(https://icons.iconarchive.com/icons/custom-icon-design/mono-general-2/512/copy-icon.png);
background-size: 15px 15px;
background-repeat: no-repeat;
background-position: 200px 50%;
background-attachment: scroll;
}
<a href="#">Some Random Header Text</a><br>
<a href="#">Some Random Header Text but Longer</a>
I want the icon to show at the right end of the text for the both instances of anchor link when hover unto them how can I achieve it?
Here's an expected result:
