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 trialJulie Pham
12,290 Pointswhy styles.css doesn't work on Chrome?
The background and font color do not change on Chrome but they do on Safari. Could anyone please explain why?
4 Answers
jason chan
31,009 Pointsclear browser history or refresh a few times. Or try icognito.
You might have to do css prefixes. I hope that helps.
Wu Ray
2,359 Pointsactually I also have the same problem, it seems the browser's cache stop to read the new scripts. try eliminate the history data would help instantly. :)
Daniel Kaczmarczyk
Courses Plus Student 5,536 PointsI had the same issue, what helped me is adding the type="text/css"
tag.
<link rel="stylesheet" type="text/css" href="/static/styles.css">
Ming Jun Lim
10,060 PointsThank you, this worked!
Make sure the it is type="text/css" and not type="css/text"
clenk
387 PointsIn Chrome if you go to the DevTools settings, you can disable the cache as long as DevTools is open.
Yosef Fastow
18,526 PointsYosef Fastow
18,526 PointsI had the same problem but if you refresh it a few times it fixes itself. It is weird that that is happening. I'm using firefox.