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

PM Kacprowski
PM Kacprowski
2,490 Points

max width

Hi,

I am going through exercise for Style New Pages. I receive an error, could you let me know where I am doing mistake?

Challenge Task 5 of 5: Give the image a maximum width of 150 pixels and a border radius of 100%.

The error I get: Bummer: Did you set the max width to 150px?

My solution: img{ display:block; margin:0 auto 30px; max-width: 150px; border-radius:100%; }

1 Answer

Hey PM, I think your issue may be you are applying the stylings to the <img> tag instead of the .profile-photo class

I tried the challenge with the same styling you used but applied it to the class instead and it seemed to work.

.profile-photo {
  display: block;
  margin: 0 auto 30px auto;
  max-width: 150px;
  border-radius: 100%;
}

Hope this helps! Dylan

PM Kacprowski
PM Kacprowski
2,490 Points

Thank you for your help. This worked fine :)