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

Mladen Jovanovic
Mladen Jovanovic
4,662 Points

Getting white background and can't seem to find a solution in the questions asked so far.

I'm in the CSS Basics course, at the 'Transparent Gradients and Multiple Backgrounds' part.

I was following the course instructions to a T, but at the step where we were supposed to add a linear gradient over the main header background picture, all I keep getting is a white background.

I've re-checked my code a dozen times and can't seem to find any difference between it and what Guil wrote.

I've also noticed that people have had similar issues, but none of the fixes they eventually used are helping me out here.

Here's a snapshot of my current workspace: https://w.trhou.se/wflpcdqffu

Any ideas, guys? Thanks in advance!

1 Answer

Andreas Nystrรถm
Andreas Nystrรถm
8,887 Points

Hi, I think I found it.

On line 70 in your style.css (the comment "/* Main Styles --------------------- */") you've accidentally added something after. Remove this and everything should work fine.

Hope this works! Happy coding :).

Mladen Jovanovic
Mladen Jovanovic
4,662 Points

Oh my God! Thanks a bunch for spotting that for me. :)

I know exactly how it happened: I have a small keyboard and I quite often accidentally hit PageUp or a similar key. Must have done it and just kept typing.

Just goes to show that I have to look everywhere and not just in the few lines of code that I think are relevant.