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 Bringing our Sass Project into Workspaces

Andrea Monty
Andrea Monty
2,724 Points

Background text does not work

With SASS being watched in both terminal and Workspaces in my scss. style.css when I type background: red; and save it, is not changing the background in browser. I am also seeing a fixsum is depricated warning when I start the SASS watch. in both Terminal and WorkspacesWould that have anything to do with my background not changing? I am new to the command line and learning to code. I have HTML and CSS knowledge but not much with the Command Line. Any help is greatly appreciated.

Terminal and Workspace warning

>>> Sass is watching for changes. Press Ctrl-C to stop.
/Users/almonty67/.rvm/gems/ruby-2.3.3/gems/sass-3.4.23/lib/sass/util.rb:1109: warning: constant ::Fixnum is deprecated
      write css/style.css
      write css/style.css.map
[Listen warning]:
  Listen will be polling for changes. Learn more at https://github.com/guard/listen#polling-fallback.

scss style.css

body {
  color: #878787;
  margin: 0;
  font: 1em/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
 background: red;
}

After you changed your file, did you save it? If you saved the file, check if you see these lines on terminal:

>>> Change detected to: scss/style.scss
      write css/style.css
      write css/style.css.map

1 Answer

Hi Andrea,

I didn't understand part of your question, but I think you're trying to change the background color of the web browser correct? If this is the case, you'll need to update your CSS to look like the following:

body {
  color: #878787;
  margin: 0;
  font: 1em/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: red;
}

As for the command line errors, I have to say I'm a little puzzled on why you would be using a console to render front end technologies like CSS or HTML. The console or "Command Line" programs are used for scripting languages. Languages that are used to speak to a server or 'back-end'.

Let us know if we can help you further or if I wasn't able to resolve your issue.