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 trialRuss Sanderlin
3,005 PointsWhen I use display:block, why does my profile photo end up in the top right hand corner of the page?
Following along in the "Adding pages to a website, Style new Pages", I set display:block and my image ends up in line with my header. When I remove display: block or replace it with display: inline, it returns back to where it is supposed to be but it is not centered. Very frustrating while learning how to do this :( Any help, would be greatly appreciated.
6 Answers
Jeremy Frimond
14,470 PointsCan you post your code?
Will Hughes
1,992 PointsI've just taken a look through your CSS, and tested it, I don't seem to see any issue, may I ask what Internet Browser are you using?
Russ Sanderlin
3,005 PointsI am using Firefox.
Carlos Pals
814 Pointsare you using position absolute/fixed?
Russ Sanderlin
3,005 PointsI have no CSS rules that use the position property.
Nick Pettit
Treehouse TeacherHi Russ,
Unfortunately, there's a cross-browser bug in this course (my fault!). If you go back to the video and check the "Teacher Notes" section just below the video player, you'll find the code to correct the issue. :)
Russ Sanderlin
3,005 PointsRuss Sanderlin
3,005 PointsI'm not sure how much you want me to post, but here is the CSS portion: