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 trialKerry Collier
Front End Web Development Techdegree Student 16,151 PointsProfile Photo help for Responsive Layout Project for Front End Web Developer Techdegree program
So, I know how to make the photo round, that's not an issue. The problem is in the example images they give to make your page look like, there's a darker gray box behind the profile photo, and I can't figure out how to do that. Any thoughts from anyone? That's the last piece of the puzzle and I've been stuck for a bit on it. After I figure that out, I can finish up. Thanks in advance!
1 Answer
Steven Parker
231,261 PointsI can't look at your link (I get "This project is only accessible to active students enrolled in our Techdegree program."), but just based on your description, it sounds like you might get the effect you want by applying the box-shadow
CSS property to your IMG elements or perhaps their containers.
You might start with this and then tweak it to look like the sample:
img { box-shadow: 0 0 0 16px gray; }
Kerry Collier
Front End Web Development Techdegree Student 16,151 PointsKerry Collier
Front End Web Development Techdegree Student 16,151 PointsNot quite, but I think it's on the right track, I think with some fiddling around I'll have it. I was thinking that was possibly what I wanted, but wasn't sure.
Kerry Collier
Front End Web Development Techdegree Student 16,151 PointsKerry Collier
Front End Web Development Techdegree Student 16,151 PointsYou know what, never mind. That was actually part of the image file that they had as an example, not part of the page itself. Figures!