Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> img { padding: 10px; } #img2::-moz-selection { background-color: #d9d9d9; } #img2::selection { background-color: #d9d9d9; } </style> </head> <body> <p>Here the selection color for the second image is set to gray.</p> <p>Select both images to see the difference.</p> <img id="img1" src="/uploads/media/default/0001/01/25acddb3da54207bc6beb5838f65f022feaa81d7.jpeg" alt="Aleq"> <img id="img2" src="/uploads/media/default/0001/01/25acddb3da54207bc6beb5838f65f022feaa81d7.jpeg" alt="Aleq"> </body> </html>