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

HTML How to Make a Website Styling Web Pages and Navigation Polish the Navigation and Footer

Sonny Collinson
PLUS
Sonny Collinson
Courses Plus Student 531 Points

Icons disappear when using chrome

Tried opening the web page in edge and the icons show up resized correctly. So I know my code is correct...

Does anyone know why the same code causes issues in Chrome?

Damien Watson
Damien Watson
27,419 Points

It would depend on what the code is doing. Maybe there is something that is not compatible.

2 Answers

Sonny Collinson
PLUS
Sonny Collinson
Courses Plus Student 531 Points

Well if I delete the css style for .social-icon they still do not show. But if I take out class="social-icon" then they reappear in Chrome.

This is the code in the file.

<a href="http://twitter.com"><img src="img/twitter-wrap.png" alt="Twitter Logo" class="social-icon"></a> <a href="http://facebook.com"><img src="img/facebook-wrap.png" alt="Facebook Logo" class="social-icon"></a>

Sonny Collinson
PLUS
Sonny Collinson
Courses Plus Student 531 Points

Managed to fix if anyone else has this issue.

Test procedure:

Set class="social_icon" Icons display fine in Chrome Set class="social-icon" Icons disappear in Chrome Disable Adguard in chrome class ="social-icon" Icons finally appear in Chrome with social-icon class name

I do not know why but Adguard is blocking images that have the character "-" in the class name