4

I'm wanting to use a little image/icon in a jsfiddle.

How do I go about this? Do I upload an image somewhere? Or are there URLs that you can pull from? The documentation didn't make it obvious (to me, at least). I also found this and this, but the accompanying fiddles aren't showing an image.

I just want a 20px x 20px something to attach to an <a> to demo some CSS.

Community
  • 1
  • 1
Nick
  • 5,995
  • 12
  • 54
  • 78
  • you can't upload anything to jsFiddle. Please either upload it to public dropbox folder or any other service which allows that. You can also use image placeholders if image's content is not important - http://placekitten.com/ – zalun Nov 13 '12 at 17:25
  • @zalun Thanks. If you want to make it an answer, I'll accept it :) – Nick Nov 13 '12 at 20:03

2 Answers2

6

Reposted as an answer - you can't upload anything to jsFiddle. Please either upload it to public dropbox folder or any other service which allows that. You can also use image placeholders if image's content is not important - placekitten.com

zalun
  • 4,619
  • 5
  • 31
  • 33
  • Noting that it seems they require attribution: http://placekitten.com/attribution.html (No idea what the minimum requirement for *attribution* is, and especially since jsFiddle has the code displayed.) – kristinalim Sep 28 '13 at 18:32
2

Your other option is to embed the image as base64 encoded content. See https://en.wikipedia.org/wiki/Data_URI_scheme for details on doing that.

Norman H
  • 2,248
  • 24
  • 27