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 How to Make a Website Styling Web Pages and Navigation Style the Portfolio

Jaimie de Vries
Jaimie de Vries
7,300 Points

The background color of my "Gallery-li" isn't visible and i'm missing a paragraph.. :(

Hi!

I have two problems. First one is that i can't see the Gallery-Li background color i've set in CSS. When checking the code with the inspect element tool from Safari i saw that my code is being removed with a red line. So there must be something blocking it?

Second problem: My browser doesn't show the paragraph of my last Gallery Li.

Hopefully someone can help me solve these problems.

Thanks!

Code --> http://codepen.io/anon/pen/ByrMWR

alt text

1 Answer

Lin Lu
Lin Lu
29,171 Points

Answer to the first problem: you are missing the number sign "#" in your css declaration: background-color:f5f5f5;

Jaimie de Vries
Jaimie de Vries
7,300 Points

Thanks for the quick reply! Feel like an idiot for not seeing that haha.

Lin Lu
Lin Lu
29,171 Points

Haha we're all learning. :) The second problem didn't appear on my browser, but I couldn't see the images

Jaimie de Vries
Jaimie de Vries
7,300 Points

Yeah it's a real trial and error process haha. I've found the solution for the second problem.

nav a, ....... a:visited { color: #fff; }

Forgot to place nav before a:visited.. A minor mistake again.