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 CSS Foundations Values and Units Absolute Length Units

Taylor Daley
Taylor Daley
2,468 Points

Cannot 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

That'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.

Taylor Daley
Taylor Daley
2,468 Points

Thanks! 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.

I 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
Taylor Daley
2,468 Points

Whenever 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.

I am having a similar problem. Setting up the CSS files seems a bit different in this lesson. I normally set up like this:

  1. Make a file called "index.html" and paste the html in.
  2. Make a folder called "css"
  3. 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.