Note
-
The code for all examples is the same, with the exception of the
viewBox
attribute value
-
The
viewBox
attribute is missing completely from example 1
HTML
<div class="flex_container">
<object data="../svg/svg_example_six_1.svg"
type="image/svg+xml">
</object>
</div>
SVG
// svg_example_six_1.svg
<svg version= "1.1"
width = "300"
height = "200"
xmlns = "http://www.w3.org/2000/svg">
<rect
width="100%"
height="100%"
fill="lightgoldenrodyellow" />
<rect
x="5%"
y="5%"
width="40%"
height="40%"
fill="red" />
<rect
x="55%"
y="55%"
width="40%"
height="40%"
fill="blue" />
<rect
x="55%"
y="5%"
width="40%"
height="40%"
fill="green" />
<rect
x="5%"
y="55%"
width="40%"
height="40%"
fill="orange" />
</svg>