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 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 :-)