Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

<svg/> element does not respect 100% height/width in Firefox

Tags:

firefox

svg

<svg></svg>

http://jsfiddle.net/c6SW6/

It works correctly in Chrome but I cannot seem to get the svg element to fully expand no matter what I try.

Any thoughts?

like image 407
jbrown Avatar asked Oct 04 '22 20:10

jbrown


1 Answers

You need to give html a height of 100% as well:

body, html {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

jsfiddle

like image 188
Tim Cooper Avatar answered Oct 11 '22 15:10

Tim Cooper