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

CSS

Workspace not responding to CSS

I have literally copy and pasted the files from the "How To Make a Website" track and yet the preview remains only html and not responding to the CSS files... help?

4 Answers

Hi, did you make sure you linked the CSS file to the HTML file? with the:

link href = "nameofthefile.css" type = "css/text" rel = "stylesheet"

insert that to youre HTML file in the head section and put the name of the CSS file youre trying to link under the href. That should work.

Indeed as Idan said.

If that folder happens to be outside of your currently working directory, you may need to reference that directory in your file path as well. Example: href= 'style/main.css' for a folder called 'style'

I did that... after further review I realized that I had capitalized my folder and referred to it in lowercase... rookie mistake. Thanks for your help!

No worries. Glad you pinpointed it.

No problem Josh! good luck :)