Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS CSS Foundations The Box Model Positioning Properties

Tommy Gebru
Tommy Gebru
30,151 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.