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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Johan Hernández](https://uploads.teamtreehouse.com/production/profile-photos/82661/micro_61229_1596290224260_427083_n.jpg)
Johan Hernández
4,141 PointsConditional comments as fallback for svg
Hi, I'm trying to use this code:
<object data="img/logo.svg" type="image/svg+xml" class="chart">
<a href="img/logo.svg">
<!--[if lte IE 8]-->
<img src="img/logo.png" alt="">
<!--[endif]-->
</a>
</objetct>
(Taken from Flexible Images Part One: Vector Graphics | Team Tree House)
In order to fall back the svg logo we use the conditional comment for less or equal to IE 8, but when I test it in IE 8 or lower it shows the conditional comments (also the png) but I don't want the comments to display... Is there a way to avoid the conditional comments to display?
Thank you!
4 Answers
![Ian Lunn](https://secure.gravatar.com/avatar/2f0075154508d522f17237b54bdb1945?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Ian Lunn
4,558 PointsYou have a small typo. The conditional comment should read:
<!--[if lt IE 8]-->
![Johan Hernández](https://uploads.teamtreehouse.com/production/profile-photos/82661/micro_61229_1596290224260_427083_n.jpg)
Johan Hernández
4,141 PointsHi Ian, thank you for your answer, yes I see it, however I made the mistake in the question but not in the actual conditional comment in my page... is not a copy paste in other words. The one in my page is <!--[if lte IE 8 ]-->
I'll correct the mistake in the question. Thanks again!
![Ian Lunn](https://secure.gravatar.com/avatar/2f0075154508d522f17237b54bdb1945?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Ian Lunn
4,558 PointsYou threw me off too ;) It should be this:
<!--[if lte IE 8]>
Do Something
<![endif]-->
![Johan Hernández](https://uploads.teamtreehouse.com/production/profile-photos/82661/micro_61229_1596290224260_427083_n.jpg)
Johan Hernández
4,141 PointsOk, I'll do it... I'm not a native english speaker, could you tell me what 'You threw me off too' means?
Thanks Ian
Done, it works just great! I wonder why in the video They use it the way I posted...