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

HTML How to Make a Website Adding Pages to a Website Style New Pages

Image is still a square

My image is not becoming a circle. I'm not sure why this error is occurring.

I tried replacing my images and that did not work either. For example I replaced Ebrahim.jpg with Nick.jpg and the image stayed as Nick.jpg. I cannot seem to edit or replace any of the images in my code

10 Answers

anthony compres
anthony compres
2,259 Points

I think it would be good if you snackshot your code in workspace. so we can see what exactly is going on in your code so we can figure out the problem.

sure,

https://w.trhou.se/bre3d35fb0

Can you see this snapshot?

This is my code for the image- <img src = "img/Ebrahim.jpg" alt = "Photograph of Ebrahim Feghhi" class "profile-photo">

This is my code for resizing the image in the css file

.profile-photo { clear: both; display: block; max-width: 150px; margin: 0 auto 3px; border-radius: 20px; }

My problem is if I replace Ebrahim.jpg with another jpg file, it will not update in my website. The resizing in the css file is also having any effect on what I am trying to do.

anthony compres
anthony compres
2,259 Points

why don't you try. max-width: 150px; margin: 0 auto 30px; border-radius: 100%;

I tried that and my image is still a square

nothing is working on my images, even that max-width is not working

anthony compres
anthony compres
2,259 Points

try to reset your browser your code should work

What do you mean by reset the browser code?

anthony compres
anthony compres
2,259 Points

which browser are you using? in the Teacher's Notes there a code correction for firefox

I'm using Safari, I added in the code correction for Firefox and nothing happened

Okay I can change my image now with other images, but I still can't seem to edit the images