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 How to Make a Website Customizing Colors and Fonts Organize CSS with Comments

Tam Nguyen
Tam Nguyen
2,883 Points

Outside workspaces how can we connect ccs and html in such apps like dreamweaver, etc.

In workspaces we connect CSS and HTML by

<link rel="stylesheet" href="css/1.css">

but it's because of the existed file tree in workspaces so we have CSS/.... But outside of there, how can we connect both CSS and HTML, I tried in Dreamweaver but it didn't work.

James Walsh
James Walsh
5,438 Points

In your main project folder create a folder named css and inside there create you .css file. Inside your head tags you link it like the example you posted above <link rel="stylesheet" href="css/1.css">

1 Answer

It works the same way on your local machine as in Treehouse workspaces. If you put your files in a project folder and create the same file/folder structure within that project folder as in a workspace, your references to css, scripts, images and anchors should work nicely :-)