Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
  • Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • You can also use markdown to share your code. When using markdown your code will be automatically converted to BBCode. For help with markdown check out the markdown guide.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.

    GIF shows where to locate </> in the thread and or post editor toolbar.
    To learn more about how to use our BBCode feature, review our "How to post your code into threads" here.

    Thank you, Code Forum.

HTML & CSS image wont show up, shows up broken in CODEPEN, but shows up fine in browser or W3SCHOOLS

i have an image "http://ryanspickapart.com/images/credit-card-icons.png which shows up fine in a browser, but shows up as a broken link in my code at codepen https://codepen.io/richardengle/pen/rNMRzzE
the other image [dog] shows up fine... any ideas why the one image
the code is :
<img src="http://ryanspickapart.com/images/credit-card-icons.png" alt='image wont load'>
<br>
<img src='https://images.unsplash.com/photo-1...xlib=rb-1.2.1&auto=format&fit=crop&w=300&q=80' alt='image works fine' >
 
i have an image "http://ryanspickapart.com/images/credit-card-icons.png which shows up fine in a browser, but shows up as a broken link in my code at codepen https://codepen.io/richardengle/pen/rNMRzzE
the other image [dog] shows up fine... any ideas why the one image
the code is :
Code:
<img src="http://ryanspickapart.com/images/credit-card-icons.png" alt='image wont load'>
<br>
<img src='https://images.unsplash.com/photo-1...xlib=rb-1.2.1&auto=format&fit=crop&w=300&q=80' alt='image works fine' >
 
i have an image "http://ryanspickapart.com/images/credit-card-icons.png which shows up fine in a browser, but shows up as a broken link in my code at codepen https://codepen.io/richardengle/pen/rNMRzzE
the other image [dog] shows up fine... any ideas why the one image
the code is :
Code:
<img src="http://ryanspickapart.com/images/credit-card-icons.png" alt='image wont load'>
<br>
<img src='https://images.unsplash.com/photo-1...xlib=rb-1.2.1&auto=format&fit=crop&w=300&q=80' alt='image works fine' >
You can edit your original post at the top by clicking edit.

i don’t see anything really wrong. It could probably be blocked by codepen maybe?

edit: seems like CodePen will block urls. Try uploading the images to GitHub or Google Drive.
 
Last edited:
Yes @Krusty the Senile is right. But this also affects browsers, so called "mixed content" is blocked.
Since SSL certificates are available for free, there should be no more websites that are delivered without SSL.

@Malcolm
I have been working a lot with CodePen myself in the last few days as I am starting a Vue.js project.
It doesn't block anything, everything that doesn't work is due to user error.
 

Latest posts

Buy us a coffee!

Buy me a coffee.
Back
Top Bottom