title: Svg responsive width with adjustable height
body: <p>been having a hard time to come up with a good solution to have a responsive svg that will adopt the screen width plus an adjustable height. I tried setting <code>width to 100% and height to something like 200px</code> but no luck.</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>header.svg {
    width: 100%;
    max-height: 200px;
    height: 200px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;header&gt;
  &lt;svg width="321px" height="141px" viewBox="0 0 321 141" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"&gt;
      &lt;defs&gt;&lt;/defs&gt;
      &lt;g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"&gt;
          &lt;g id="header-copy-" fill="#262626"&gt;
              &lt;g id="header-copy-2"&gt;
                  &lt;path d="M0,0.31823636 L321,0.31823636 L321,132.556396 C267.894961,138.185465 214.394961,141 160.5,141 C106.605039,141 53.1050387,138.185465 0,132.556396 L0,0.31823636 Z" id="Rectangle-Copy-12"&gt;&lt;/path&gt;
              &lt;/g&gt;
          &lt;/g&gt;
      &lt;/g&gt;
  &lt;/svg&gt;
  &lt;/header&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I also tried adding a <code>100%</code> width to the header element.</p>