I want to have an inline SVG fill the whole width of the browser window. The SVG has some content outside of the viewBox. This is the SVG file: http://pastebin.com/F5irDNai
What happens when I set the width to 100% is that the content outside of the viewBox gets visible:
svg {
width: 100%;
}
See this jsfiddle: https://jsfiddle.net/3w2hy8kv/1/ The red rectangle is the viewBox boundary.
What I want is to have the viewBox of the SVG fill whole browser window horizontally without the content outside of the viewBox appearing. Is that possible?
preserveAspectRatio="xMinYMid slice"
on the svg element – Ruskin