This simple html snippet:

You can see that svg is40px, but the surrounding div is set to44pxhigh (checked on chrome).

Why. And how to make the surrounding div respect the size of the SVG without explicitheighton the surrounding div and keep thesvg+textlayout on the same line?

+6
sourceshare
1answer