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

Maer Soukaros
Maer Soukaros
431 Points

I need someone to take a look at my CSS - it's not loading properly. What am I doing wrong??

I've been following carefully and have had really good success up until now. Suddenly anything I do is not loading. Can someone please take a look and tell me what I've done wrong?

It was suggested on an earlier question that I try a different browser. I've tried 2 others and still nothing different. It seems like my site is frozen and just won't respond to any changes I make in the code. And it just started while working on the Contact page.

First - I want no bullet styling "list-style: none;" but it keeps the bullets.

Now when loading icons, which are correctly loaded into my img folder, nothing happens.

/******************** PAGE: CONTACT ********************/

.contact-info { list-style: none; padding: 0; margin: 0; font-size: 0.9em; }

.contact-info li.phone a { background-image: url('../img/phone.png') }

.contact-info li.mail a { background-image: url('../img/mail.png') }

Kelly von Borstel
Kelly von Borstel
28,880 Points

Could you also post your html? This is a good link to explain how to post code so it will be properly formatted and easy to read. https://teamtreehouse.com/forum/posting-code-to-the-forum

2 Answers

Kallil Belmonte
Kallil Belmonte
35,561 Points

I see that you are forgeting to put a semicolon after you url images.

.contact-info li.phone a { background-image: url('../img/phone.png'); }

.contact-info li.mail a { background-image: url('../img/mail.png'); }
Rich Donnellan
MOD
Rich Donnellan
Treehouse Moderator 27,696 Points

Maer,

Check your folder structure and your relative path URLs. Without knowing this it's hard to troubleshoot for you; it's possible you are referencing them incorrectly.

Cheers!