jbrown
jbrown

Reputation: 146

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

<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?

Upvotes: 5

Views: 6639

Answers (1)

user142162
user142162

Reputation:

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

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

jsfiddle

Upvotes: 4

Related Questions