Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS CSS Foundations The Box Model Positioning Properties

Tommy Gebru
Tommy Gebru
30,164 Points

Using the book

So I am following along making a website with the treehouse foundations HTML5 book. However there seems to be issues with workspaces so I used Codepen instead this worked better. But now I dont know how to insert images into codepen!

1 Answer

Austin Kladke
Austin Kladke
4,494 Points

You should be able to link images into your CodePen file. You need to make any links to images and assets as absolute, not relative. It looks like linking images relatively just doesn't work in CodePen. **Absolute linking meaning that you need to write out the whole link to the image in the img src tag.

Source: http://css-tricks.com/forums/topic/a-guide-to-using-codepen-help-us-help-you/

James Barnett
James Barnett
39,199 Points

That's actually incorrect.

You can't use images unless they are accessible on the web. Since linking to images on the web is always absolute but not all absolute links are accessible on the web.