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
Rachael Breakell
3,600 PointsIn the Web Design course the About page has position problems in Firefox?
After finishing the Responsive Web Design and Testing in the Web Design course I found that when I tested the About page in Firefox and made the page smaller than 480px, the image moved to the top of the page next to the header and nav. I'm not sure why its doing this because I thought the css 'float:left' would make sure that it didn't move onto this line. I also tried 'clear:left' and 'clear:both' but it didn't change anything.
I thought it might be a problem with my code, so downloaded the code 'HowToMakeAWebsite-Stage8-Video4' and its still doing the same thing in Firefox. It works fine on Chrome so not sure what's going on.
Please help!
2 Answers
Jonathan Grieve
Treehouse Moderator 91,254 PointsThis is common problem a lot of people are picking up on now. But I've just tested my own version in Firefox and it seems to load fine.
My 2 questions work be what version of Firefox are you using, and could you post your code here so we can flush out the bug. :)
Thanks.
David Remington
18,326 PointsI'm experiencing the same issue using Firefox 34.0.5
It seems to be related to displaying the profile picture as a block, because when I change the display property to inline-block in main.css the image will appear above the text (albeit off center)
responsive.css:
@media screen and (min-width: 480px) {
/******************
TWO COLUMN LAYOUT
******************/
#primary {
width: 50%;
float: left;
}
#secondary {
width: 40%;
float: right;
}
/******************
PAGE: PORTFOLIO
******************/
#gallery li {
width: 28.3333%;
}
#gallery li:nth-child(4n) {
clear: left;
}
/******************
PAGE: ABOUT
******************/
.profile-picture {
float: left;
margin: 0 5% 80px 0;
}
}
main.css:
/******************
PAGE: ABOUT
******************/
.profile-picture {
display: block;
max-width: 150px;
margin: 0 auto 30px;
border-radius: 100%;
}