Suppose I have one div and the div has an img tag, for example, <div><img src='img1.png'/></div> so when the page starts, img1.png will load inside the div. I just need to know how I could place another small image in the center, like any uploaded image on img1.png. what would be the best way to do this, as using jquery or css. give me css or jquery to place a small image on a div in the center.
I have another question, if a div has a background image defined using css, then can I tell if the background image loading is complete or not using jquery? if possible please show me an example code. thanks
source share