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 trialEbrahim Feghhi
840 PointsImage is still a square
My image is not becoming a circle. I'm not sure why this error is occurring.
10 Answers
anthony compres
2,259 PointsI 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.
Ebrahim Feghhi
840 Pointssure,
Ebrahim Feghhi
840 PointsCan you see this snapshot?
Ebrahim Feghhi
840 PointsThis 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
2,259 Pointswhy don't you try. max-width: 150px; margin: 0 auto 30px; border-radius: 100%;
Ebrahim Feghhi
840 PointsI tried that and my image is still a square
Ebrahim Feghhi
840 Pointsnothing is working on my images, even that max-width is not working
anthony compres
2,259 Pointstry to reset your browser your code should work
Ebrahim Feghhi
840 PointsWhat do you mean by reset the browser code?
anthony compres
2,259 Pointswhich browser are you using? in the Teacher's Notes there a code correction for firefox
Ebrahim Feghhi
840 PointsI'm using Safari, I added in the code correction for Firefox and nothing happened
Ebrahim Feghhi
840 PointsOkay I can change my image now with other images, but I still can't seem to edit the images
Ebrahim Feghhi
840 PointsEbrahim Feghhi
840 PointsI 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