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 trialTam Nguyen
2,883 PointsOutside 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.
1 Answer
Joachim Larsen
12,140 PointsIt 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 :-)
James Walsh
5,438 PointsJames Walsh
5,438 PointsIn 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">