The CSS property ________ can be used to control the scaling of an SVG not to exceed its container.
- fit
- resize
- max-scale
- contain
The correct option is contain. This property ensures that the SVG scales down proportionally to fit within its container without exceeding it. It's particularly useful when dealing with responsive design and maintaining the aspect ratio of the SVG.
Loading...
Related Quiz
- How does the concept of 'partials' in SASS help in managing large stylesheets?
- How can you pause an animation before it begins or between iterations?
- Which CSS property is used to change the text color of an element?
- The position: ________ property creates a new stacking context and positions an element in relation to the browser viewport.
- During the testing phase, a team discovers that their website's layout breaks in Internet Explorer but works fine in other modern browsers. What approach should they take to resolve this without impacting the layout in modern browsers?