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

HTML

CSS: Colors section

So i'm stuck here when nick starts talking about the basic html structure he has set up i quickly copy it down. he has a , index.html and a main.css and a page.css and copy all them down but when he gets to the page part and then goes to the browser and i try it nothing happens? what do you think is wrong is it my folder?

4 Answers

Derrick Lee
Derrick Lee
7,743 Points

Hey!

I never started on those lessons but the problem is probably because you are not linking to your css properly.

Let's assume you have an HTML page, called index.html

So, in your htdocs folder, you will have a HTML page called index.html Now, you could either create a folder inside htdocs and call it "css", and dump all your css files inside.

If you wanna call those CSS files from your index.html, you will call them using href="css/main.css"

What if your css files are not in a folder but along side your html documents? You will call them using href="main.css"

Here is a good read if you still don't understand http://help.adobe.com/en_US/dreamweaver/cs/using/WScbb6b82af5544594822510a94ae8d65-7c44a.html

John Locke
John Locke
15,479 Points

One more thing, when you link to your CSS file, it is relative to the folder that your index.html file is in. Make sure that you have them all in one folder.

can u please paste ur HTML part here.

Thanks guys i figured it out it was that i had the path wrong.