3
3
32b2015-11-17 21:28:18
Web development
32b, 2015-11-17 21:28:18

How to make images not disappear in codepen. Where is the mistake?

They make a site in the codepen sandbox, use imgur as image hosting, insert the image into html like this:

<img class="img-responsive" src="http://i.imgur.com/jPZCd9E.png" alt="" />

And I use one for the background:
background-image: url("http://i.imgur.com/mqRBikN.jpg");

Everything works until you exit the foam, then when you go back in, neither the background nor the logo is displayed until you copy the image link and upload it in another tab. What's wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
impfromliga, 2016-06-08
@32b

Is the alternative to make it inline suitable?
https://ru.wikipedia.org/wiki/Data:_URL#.D0.A4.D0....
you need to recode the file to b64, for example Total Commander -> menu -> file -> encode MIME
from the received file copy-paste the solid character set at the bottom in html resulting in a form
<img src="data:image/png;base64,КУЧА_СИМВОЛОВ" />

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question