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 trialBrice Franks
1,488 PointsWhy does new image change structure of page?
I have completed my website but wanted to change the photo of me and when I did the structure changed, what should I do to keep it the same as it was before? Here is the code below that reflects my question...
<section> <img src= "img/Brice 2.jpg" alt= "photograph of Brice Franks" class= "profile-photo">
I wanted to change this image to one that is in my file.
/********************** PAGE: ABOUT ********************/
.profile-photo { float: left; margin: 0 5% 80px 0; }
Here is the code for my responsive.css.
/********************** PAGE ABOUT ********************/
.profile-photo { display: block; max-width: 150px; margin: 0 auto 30px; border-radius: 100%;
}
Code from my main.css
1 Answer
Brice Franks
1,488 PointsThe margin and border change the appearance. I thought the new image would size to fit.
Jason Anello
Courses Plus Student 94,610 PointsAre you doing this in workspaces? If so, you can post a snapshot of your workspace.
If all you did was change the image, then nothing should be different.
Jason Anello
Courses Plus Student 94,610 PointsJason Anello
Courses Plus Student 94,610 PointsHi Brice,
Can you describe what you mean by the structure changing?