Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML

Two 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

Try:

<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?

Have you linked you 2nd page to the css file? It's not enough just to have it linked into the 1st page.

yes i did.

Maybe I misunderstood. Do you have a separate css file for each page. Or two css files that you have linked in to both pages?

P.S., can you post the links from both pages? Just copy them and then paste them in here following the Markdown Cheatsheet.

<li><a href="about.html">About</a></li> <link rel="stylesheet2" href="stylesheet2.css">

i want to have a html and css for each page it's all in one file.

the first one is my home page and the second one is the page I'm trying to get my second css to work

Thank you so much. Question? did you teach your self programming or did you go to school for something along the lines.

Is it working now?

Yes, taught myself. There weren't courses when I was in school.

yes it works now! thanks again.