Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS CSS Basics (2014) Getting Started with CSS Inline and Internal Styles

Katie Kranz
Katie Kranz
1,546 Points

I am typing the code verbatim and when I go to preview the page, the code is not rendering. Why is this happening?

For example:

<html> <head> <title>Lake Tahoe</title> <style> p { font-size: 20px; font-weight: bold; }

  h1 {
    font-size: 90px;
    color: firebrick;
     }
  header {
    background-color: orange;
  }

</style>

</head>

2 Answers

I had the same issue, the problem is the browser cache--meaning the browser has a saved version of the page and you won't see changes like a change in background color unless you refresh many, many times. A way of getting around this is opening up developer tools on Chrome (browser), clicking "network" and then "disable cache". You can find this tool on the chrome browser by clicking View >> Developer >> Developer Tools.

Once you click disable cache, every time you refresh the page after making a minor change, the change will be represented on the webpage.

Hope that helps

Leena Thampan
seal-mask
.a{fill-rule:evenodd;}techdegree
Leena Thampan
Front End Web Development Techdegree Student 1,806 Points

Hi Karn, I tried disabling the cache using the developer tools, but the style changes are still not rendering properly. It only appears to be affecting the font-weight selector.

<style> p { font-size: 20px; font-weight: bold; } </style>

Steven Parker
Steven Parker
221,328 Points

There are two common reasons for this:

* you forget to save your changes (with the menu or control-s shortcut)

* you forget to refresh your browser where the preview is displayed

Katie Kranz
Katie Kranz
1,546 Points

Okay I will try doing that. Thank you. If this doesn't work, could it be that there is a tech error happening with Workspace?