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 trialKevan Puddicombe
Courses Plus Student 2,845 PointsTwo html two css
Hello i have been working on a homepage of mine and it's done. i connected my "about" on my Nav bar and connected it successfully i can see the html on the page but my second css doesn't do anything on that page any suggestions ?.
10 Answers
jcorum
71,830 PointsTry:
<link rel="stylesheet" href="stylesheet2.css">
I've never tested this, but if you have a rel="..." attribute, the value probably can't be stylesheet2.
Are all your files, stylesheet.css, stylesheet2.css, index.html, about.html all in the same folder or directory?
jcorum
71,830 PointsHave you linked you 2nd page to the css file? It's not enough just to have it linked into the 1st page.
Kevan Puddicombe
Courses Plus Student 2,845 Pointsyes i did.
jcorum
71,830 PointsMaybe I misunderstood. Do you have a separate css file for each page. Or two css files that you have linked in to both pages?
jcorum
71,830 PointsP.S., can you post the links from both pages? Just copy them and then paste them in here following the Markdown Cheatsheet.
Kevan Puddicombe
Courses Plus Student 2,845 Points<li><a href="about.html">About</a></li>
<link rel="stylesheet2" href="stylesheet2.css">
Kevan Puddicombe
Courses Plus Student 2,845 Pointsi want to have a html and css for each page it's all in one file.
Kevan Puddicombe
Courses Plus Student 2,845 Pointsthe first one is my home page and the second one is the page I'm trying to get my second css to work
Kevan Puddicombe
Courses Plus Student 2,845 PointsThank you so much. Question? did you teach your self programming or did you go to school for something along the lines.
jcorum
71,830 PointsIs it working now?
Yes, taught myself. There weren't courses when I was in school.
Kevan Puddicombe
Courses Plus Student 2,845 Pointsyes it works now! thanks again.