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 trialRebecca Timbers
8,476 PointsMy CSS file is not connecting with my about.html file.
I have used a selected of .profile-picture in my CSS file but the CSS is not applying to my about page. Have I missed a link somewhere?
2 Answers
Al Lu
UX Design Techdegree Student 15,801 PointsWe need to see the code. You need to put the link tag with the css file on each new page, not only the index.html.
Rebecca Timbers
8,476 PointsMy about page was copied form my index.html page so the links are the same. I changed the name of the selector on both about.html file and CSS file and now the picture has just disappeared.
This is what I have for CSS
.about-picture { display: block; max-width: 150px; margin: 0 auto 30px; border-radius: 100%; }
Al Lu
UX Design Techdegree Student 15,801 PointsHonestly I'm not sure what's the problem. Are you sure the class name is the same on both files? (very common error..).