title: How to scale SVG properly and responsively in HTML5?
body: <p>I would like to contain page logo and nav in the same header container - logo on the left, nav container on the right. How to make SVG logo embedded inline properly scale to always fill 100% of its container (header) height and auto scale width - at the same time staying on the left of the container? (Do I need separate <code>&lt;div&gt;</code> to wrap <code>&lt;svg&gt;</code> container?)</p>
  
  <p>Probably I have to set svg viewBox property, but I'm not sure about how to do it to be sure that it will be responsive and render properly in different resolutions)?</p>
  
  <p>My code:</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;header id="page-header"&gt;
  
      &lt;svg id="logo" 
           xmlns="http://www.w3.org/2000/svg"&gt;
           &lt;path d="..."/&gt;&lt;g&gt;&lt;/g&gt;
      &lt;/svg&gt;
  
      &lt;nav id="page-nav"&gt;
            &lt;a href="..."&gt;...&lt;/a&gt;
            ...
      &lt;/nav&gt;
  
  &lt;/header&gt;
  </code></pre>
  
  <p>CSS:</p>
  
  <pre><code>#page-header {
      height: 9em;
      padding: 0;
      margin: 0 0 6em 0;
  }
  
  #logo {
      padding: 0;
      width:600px;  //not working at all.
  
      vertical-align:top;
      float:left;
  
      display:inline-block;
  }
  
  #page-nav {
     float:right;
     ...
  }
  </code></pre>