Can the code from imgb.com be used in css,as in the html thumbnail code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Can the code from imgb.com be used in css,as in the html thumbnail code

I tried using the src attribute as my url in css code but it didn't work

10th Oct 2020, 7:29 AM
SANNI ABDUL-AMEEN OLUWADARASIMI
2 Answers
10th Oct 2020, 8:58 AM
Simba
Simba - avatar
+ 1
HTML <img id="my-img" src="http://dummyimage.com/100x100/000/fff"/> CSS #my-img:hover { content: url('http://dummyimage.com/100x100/eb00eb/fff'); }
10th Oct 2020, 9:09 AM
Vijay Thakur
Vijay Thakur - avatar