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

Tommy Gebru
Tommy Gebru
30,164 Points

html workspaces

Why does this appear? http://web.ofh4mhk0y3.treehouse-app.com/ When using the preview feature on treehouses workspace? and why does the css not appear on my html page?

7 Answers

James Barnett
James Barnett
39,199 Points

2 things ...

  • A workspace is only available as long as a user is logged into their Treehouse account
  • Since I happened to see this when you are logged in I noticed you have all your files in the joes-pizza directory.

If you go to http://web.ofh4mhk0y3.treehouse-app.com/joes-pizza/ you'll see your website.

Hi there! Seems your link to the css file is not corrent. Your file name is actulally style.css. Also, the file path is not correct. You need to point to the css directory where the style.css is. Try replacing the href attribute of your link tag with this: href="../css/style.css" It should work.

Ah, that's easy :D It's your root directory. It will always show unless you have a file named index.html or something like that placed in that root directory.

Tommy Gebru
Tommy Gebru
30,164 Points

Awesom the directory tip helped! The css has been applied! But I still dont understand the page that separates the site i design , from the workspaces page http://web.ofh4mhk0y3.treehouse-app.com/ what does this page do?

If you mean what does ../css/styles.css means, then I could explain. style.css is the name of your file. css is the name of the directory where that file is located .. is actually not needed. It would work without it too. But generally it is a placeholder and means the directory where the html file is located in.

Tommy Gebru
Tommy Gebru
30,164 Points

no no no i mean the "index of" page that appears in my browser everytime i hit the preview button, it is the only page that appears with 4 links [alt text](../Desktop/screen shot.png)

Tommy Gebru
Tommy Gebru
30,164 Points

So I dont know how to post a screen shot anways the page i spoke of is almost a blank page with a heading "index of " and four links

  • home -css(css folder) -img(img folder) -and joe's pizza (the website that should have been the first page workspaces should direct me to!)
Tommy Gebru
Tommy Gebru
30,164 Points

That much I understand as well but,

i just want to remove this webpage that acts as a middle man between the workspace page and the site you have posted http://web.ofh4mhk0y3.treehouse-app.com/joes-pizza/

So that is my real concern