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 to Sass Installing Sass and Setting up the Project The --watch Command

Sean Flanagan
Sean Flanagan
33,235 Points

File won't open in browser

Hi.

I tried to open the style.css file in Internet Explorer but the preview appeared briefly and then disappeared.

I've got the --watch command running in the prompt. What do I do please?

Sean

5 Answers

Max Senden
Max Senden
23,177 Points

Hi Sean,

Previewing a CSS file won't show you much. If you want to see something you need to preview the HTML with the CSS linked to it.

Assuming this is what you meant, is your browser up-to-date? Perhaps try a different one? Such as Chrome, Edge or Safari? IE is disappearing fast: https://en.wikipedia.org/wiki/Usage_share_of_web_browsers#/media/File:StatCounter-browser-ww-monthly-200901-201707.png

Did you run 'sass --watch scss:css' correctly?

Sean Flanagan
Sean Flanagan
33,235 Points

Hi Max.

Internet Explorer has never been my favourite browser. I wanted to view the file with Chrome but that option wasn't listed.

Yes, I did run sass --watch scss:css correctly.

Cheers

Sean

Guil Hernandez
STAFF
Guil Hernandez
Treehouse Teacher

Hi Sean Flanagan,

Are you trying to view the actual contents of the .css file in the browser, or preview the CSS applied to the HTML (your page web) in the browser? I don't think I quite understand what you're trying to do. :)

Sean Flanagan
Sean Flanagan
33,235 Points

Hi Guil.

This is going to sound silly but owing to the passage of time, I've forgotten what I'm supposed to be doing. I've opened the command prompt with Ruby and followed the file path to the folder css_to_sass. This has two sub-folders: css and scss. Both of these folders have a style.css and a style.scss file.

I'm completely lost.

Sean

Guil Hernandez
STAFF
Guil Hernandez
Treehouse Teacher

Sean Flanagan,

Could you please post a Workspace snapshot or link to a code repo so I can have a look? Thanks!