title: SVG With Object Tag Doesn't Scale In Safari
body: <p>I have two svg images on my home page that are inside object tags. They scale beautifully when the browser is resized in Chrome and Firefox, but in Safari they won't scale, they just get get off. I have tried making adjustments to the width and height of the svg image itself but that just causes the svg to become too large on tablet size screens. I've searched and searched for a solution, but have yet to find one. While I wish there was a way to just target Safari since it works great in both Chrome and Firefox, if anyone can offer some help with this I would greatly appreciate it.</p>
  
  <p>My html code for one of the svg images:</p>
  
  <pre><code>    &lt;a href="about.html"&gt;
              &lt;div class="svg-container"&gt;
                  &lt;object class="img-responsive" type="image/svg+xml" 
                  data="images/portrait-md.svg" &gt;
                 &lt;img src="images/portrait-md.png" /&gt;
                  &lt;/object&gt;
             &lt;/div&gt;
          &lt;/a&gt;
  </code></pre>
  
  <p>The css I have used for the div container class:</p>
  
  <pre><code>    .svg-container {
          display: inline-block;
          overflow: hidden;
          position: relative;
          vertical-align: middle;
      }
  
      .svg-container object {
          pointer-events: none;
      }
  
      .img-responsive {
          display: block;
          height: auto;
          width: 100%;
          position: relative;
       }
  </code></pre>
  
  <p>My site: <a href="http://rachelhkay.com" rel="nofollow">http://rachelhkay.com</a></p>