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 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
12,612 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