Adding image to jsfiddle

I want to use a small image / icon in jsfiddle.

How can I do it? How to upload an image somewhere? Or are there any urls you can get from? The documentation did not make this obvious (for me, at least). I also found this and this , but the accompanying scripts do not display the image.

I just need to add 20px x 20px to <a> something to demonstrate some CSS.

+4
source share
2 answers

Sent in response - you cannot load anything in jsFiddle. Upload it to the public Dropbox folder or any other service that allows it. You can also use image savers if the content of the image does not matter - placekitten.com

+5
source

Another option is to insert the image as base64 encoded content. See https://en.wikipedia.org/wiki/Data_URI_scheme for more on this.

+2
source

Source: https://habr.com/ru/post/1445450/


All Articles