title: HTML/CSS svg auto height & width
body: <p>Is there a way to make the svg automatically scale to the size of the circle inside it? Something like  or something. At the moment I give the svg a size, and the circle a size. Which causes them to not match (and I don't want to manually try and match both every time).</p>
  
  <p>See how the blue background is bigger than the circle. I know I can just change the height and width, but it would be nice to have this change according to the circle size. I only want to change one element, not match both.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.divOrangeCircles {
      display: inline-block;
      background-color: aqua;
      opacity: 0.5;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;link rel="stylesheet" type="text/css" href="css/styles.css"&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div class="divOrangeCircles"&gt;&lt;svg height="200" width="200"&gt;&lt;circle cx="90" cy="90" r="90" fill="#F48043"/&gt;&lt;/svg&gt;&lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>