- 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
3 Answers
+ 4
Hope it helps you
https://code.sololearn.com/Wy3lrXNwGsgJ/?ref=app
+ 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');
}