Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Embedded svg symbol viewbox not working Reply To: Embedded svg symbol viewbox not working

#235830
pminf
Participant

Could you please let us know, how you get rid of the unnecessary padding when symbol has it’s own viewbox and only width or height (not both) are defined on the svg?

According to https://css-tricks.com/svg-symbol-good-choice-icons/ I’m trying to accomplish https://css-tricks.com/scale-svg/ (How to Scale SVG to Fit the Available Width (and adjust the height to match) – Option 1)

What was your “lack of knowledge”?