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 trialTaylor Daley
2,468 PointsCannot get the "Absolute Length Units" tutorial to work in workspaces.
Hi everyone, so for these tutorials Guil has been using Sublime text to work in but i have been using workspaces. Up until this video i have had no problems and what i do comes out the same as his. However, the project files in this video do not seem to work in workspaces. So i tested it in Sublime text to see if i had the same problem, and it works just fine. So my question is, what could be causing this to happen? Also as a suggestion to teamtreehouse, if this problem can be fixed it should, as people like me who are just starting to learn might be more comfortable using workspaces for the tutorials as that is what we have used up to this point. Thank you.
3 Answers
Andrew Molloy
37,259 PointsThat's correct. Then you click on the html file. The only way to make it automatically display that html file is to rename it index html. That is how html within folders behave in Web servers. You're asking to view a folder basically and you might have many html files in that folder.
Andrew Molloy
37,259 PointsI just tested and they seem to work fine for me in workspaces. In what way are they not working for you? Which files have you uploaded and in what folder structure?
Taylor Daley
2,468 PointsWhenever i click to view them in the browser the page displays "Index of /" and then list the file names (absolute-length-units.css, absolute-units.html, page-styles.css) rather than using them to display the intended webpage. I have tried having them all outside of a folder in workspaces, as well as tried to have the .css files in the css folder i created, which is exactly how i have placed them in the previous videos with no problem. Both ways provide similar results.
Andrew Shipley
7,781 PointsI am having a similar problem. Setting up the CSS files seems a bit different in this lesson. I normally set up like this:
- Make a file called "index.html" and paste the html in.
- Make a folder called "css"
- Make a file called "style.css" paste in the css and drag it to the folder.
Can anyone please explain how to set up the CSS files and folders so I can follow along with this video?
Thanks.
Taylor Daley
2,468 PointsTaylor Daley
2,468 PointsThanks! I see now where previous project file downloads were named index.html, however this one was not. When i renamed it to index.html the problem fixed.