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 trialCharles Sharpe
2,013 PointsI was wondering why you added the extra CSS to hide the logo text? Bg img works to w/o all the extra coding to hide tex?
I was wondering why you added the extra weird CSS styles under my-styles.css to hide the logo text. Although that works, why not delete the text and add background-image: url() and margin for centering to place the image?
Thanks, Charles
2 Answers
Jason Anello
Courses Plus Student 94,610 PointsHi Charles,
Without the text there's no content for search engines and screen reader users. It would just be an empty element used as a css hook to apply a background image. Only useful for visual users.
The teacher's notes has a link to a forum post about this.
Nicky van Bottenburg
4,646 PointsShouldn't <img src='../img/main-logo' alt="logo"/> be beter for a search engine? I'm struggling to find the reason why to use the Image Replacement Technique and the forum doesn't help either.
Thanks, Nicky