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 How to Make a Website Adding Pages to a Website Add Iconography

More CSS issues :-(

So on the 'Add Iconography' section of the understanding HTML and CSS, I have added all the code as per Nick's video and (this time) checked on Firefox, Safari and Chrome but still can't get the following code to render correctly:

.contact-info { display: block; min-height: 20px; background-repeat: no-repeat; background-size: 20px 20px; padding: 0 0 0 30px; margin: 0 0 10px; }

url = http://web-ehvcgmdxx3.treehouse-app.com/contact.html

Probably me being a complete numpty, but (more) help would be much appreciated...

1 Answer

Caroline Hagan
Caroline Hagan
Courses Plus Student 12,453 Points

Hi Michael Hemmins Having a quick looking at your URL, and using Code Inspector in Chrome, it would appear the styles need to be applied to the A not the UL. So I would take the background-repeat, background-size and padding off the UL, and put it under UL A (or .contact-info A)

Thanks Caroline, I'll try that, but the code is the same that Nick uses in the video, which is why I'm confused as to why it doesn't work...

Got it! Should have been .contact-info li a {} Missed the li and a elements. Thank you for making me look again. Talk about not seeing the wood for the trees :-D