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
Jay Gatsby
965 PointsPLEASE HELP!
I am working on "How to build a website." I have just created my about.html page but the top of my profile picture is touching my header background. when i look at the video, nick petite's picture has space between his profile pic and the border or header background (what ever it is). I went into my main.css and played around with ".profile-photo"'s margin but that doesnt seem to be the element that needs fixing. please let me know what element i need to play around with to make space or which specific video i need to refer back on. Thank you
3 Answers
Scott Becker
20,349 PointsI would move up and alter the padding-bottom or margin-bottom attribute of the header div, if possible as a next step...
Shelby Russ
3,186 PointsIt's difficult to answer your question without seeing the code in question, could you please update or reply with your html and css code? It really does sound like a margin error, but I would have to see the code to tell you for certain.
Andrew Stelmach
12,583 PointsMight be a classic margin collapse. Make sure all your divs have padding. If one doesn't, just give it "padding: 1px;" in your CSS and see if that fixes it. Difficult to solve this without seeing your code; I recommend always copy/pasting your code into codepen and providing a link for people to use and play around with it themselves.