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

Bad SVG quality when scaling down

I'm currently working on a project with an SVG logo, however, when the image is scaled down by using the CSS height property it looks pretty terrible.

If I display it at a larger size, or zoom in, it looks great.

How can I get it to look great when it's scaled down?

Here are the images:

Small: http://imgur.com/oQgJJsN Large: http://imgur.com/9XWFFMr

2 Answers

Is the logo an actual SVG when it's on the website? It's hard to tell as those two images from imgur are jpgs, so they really wouldn't represent the SVG logo accurately.

SVG's are resolution independent, so I'm not sure what's actually happening here. Is it actually live somewhere on the internet where we could actually see how it's being used?

Hi Kevin,

Thanks for your reply. It is actually an SVG on the website, I just took a quick .jpg screenshot so I could show what the quality difference was like.

I have made a codepen which shows how it is being used: http://codepen.io/tiffmc/pen/LVMxqG