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 trialTony Nguyen
24,934 PointsHow 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
Andrei Mondoc
4,380 PointsBecause 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)
Andrei Mondoc
4,380 PointsYou 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
24,934 PointsThank you so much! You really help me a lot! :)
Andrei Mondoc
4,380 PointsGlad to help!