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.

General Discussion

Tony Nguyen
Tony Nguyen
24,934 Points

How come I can't change my image?

I am wondering why the image won't change from where it says "img-circle"

Here is the original code:

<div class="row">
        <div class="col-lg-4">
          <img class="img-circle" data-src="holder.js/140x140" alt="Generic placeholder image">
          <h2 align="left">Online</h2>
          <p align="left">Web Design & Development, CMS, UI Design, eCommerce, Web Apps</p>

And here is the code I changed. and it says "images/laptop.jpg" now, I am certain that is in the right folder.

<div class="row">
        <div class="col-lg-4">
          <img class="images/laptop.jpg" data-src="holder.js/140x140" alt="Generic placeholder image">
          <h2 align="left">Online</h2>
          <p align="left">Web Design & Development, CMS, UI Design, eCommerce, Web Apps</p>

4 Answers

Because you are giving a path to your image where should be the value of the class ("img-circle" its a class not the source of your image)

You are using bootstrap right? You have to replace the "data-src=holder.js" with "src=your_path_image.jpg" and leave the class with the same value "img-circle"

Tony Nguyen
Tony Nguyen
24,934 Points

Thank you so much! You really help me a lot! :)

Glad to help!