Can I use svg images with button controls and have them resize?

asked 2014-10-03 17:40:30 +0800

sahild gravatar image sahild
117 4

We have a license for a set of icons that are 76 by 76 in svg format. I was hoping that I could just use them and they would resize based on the size of the container (i.e. button) It appears they work but the button resizes itself to the full svg image size. Like the following:

<button id="center" image="/images/align-center.svg" tooltiptext="Center"/>

If I set the width and height of the button then nothing shows, because it is clipping part of the image where there is nothing displayed.

Is there a way to use an svg image and adjust it's size?

delete flag offensive retag edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2014-10-03 17:40:30 +0800

Seen: 10 times

Last updated: Oct 03 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More