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 trialSonny Collinson
Courses Plus Student 531 PointsIcons 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?
2 Answers
Sonny Collinson
Courses Plus Student 531 PointsWell 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
Courses Plus Student 531 PointsManaged 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
Damien Watson
27,419 PointsDamien Watson
27,419 PointsIt would depend on what the code is doing. Maybe there is something that is not compatible.