# Perspective: Forcing embedded SVG to fill or resize with same aspect ratio to bounding box

**URL:** <https://forum.inductiveautomation.com/t/perspective-forcing-embedded-svg-to-fill-or-resize-with-same-aspect-ratio-to-bounding-box/38681>\
**Category:** Ignition\
**Tags:** ignition80, perspective\
**Created:** [September 15, 2020, 1:00am UTC](https://forum.inductiveautomation.com/t/perspective-forcing-embedded-svg-to-fill-or-resize-with-same-aspect-ratio-to-bounding-box/38681 "2020-09-15T01:00:47Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![dkylep](https://avatars.discourse-cdn.com/v4/letter/d/6de8d8/32.png) [@dkylep](https://forum.inductiveautomation.com/u/dkylep)\
**Post date:** [September 15, 2020, 4:17pm UTC](https://forum.inductiveautomation.com/t/perspective-forcing-embedded-svg-to-fill-or-resize-with-same-aspect-ratio-to-bounding-box/38681/6 "2020-09-15T16:17:33Z")

</div>

The svg file may have some blank space defined and it’s weird that your viewBox prop is blank in the pic you posted. Setting viewBox to the correct dimensions and setting the preserveAspectRatio to ‘none’ usually does the trick.  
Just noticed the svg is posted, I’ll play around with it.

---

_[View the full topic](https://forum.inductiveautomation.com/t/perspective-forcing-embedded-svg-to-fill-or-resize-with-same-aspect-ratio-to-bounding-box/38681)._
