Question

I'm trying to display an image usign holder.js but instead of the image the example image is being shown.

<img src='http://upload.wikimedia.org/wikipedia/sr/0/0c/Firefox-logo.png' data-   src="holder.js/140x140" alt='Thumbnail' class="img-thumbnail img-responsive"/>

Is this the correct method of using holder.js? Can someone post an example for displaying an image using holder.js?

Was it helpful?

Solution

Not sure why you broke up the data- src like that it should just be:

data-src

I don't see anything else wrong but that.

So to see an example check this out:

http://jsfiddle.net/R22tj/

EDIT

If you wanted to just show the image get rid of the data-src and the image will show up. And if you wanted to specify the height and width you also do that in the HTML. So check out this fiddle. (scroll down on the html section to see the 140x140 image.)

http://jsfiddle.net/jLqd9/1/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top