L
L
Leonard Tesnov2017-10-25 12:58:52
css
Leonard Tesnov, 2017-10-25 12:58:52

SVG image cropped, how to make it full screen?

The SVG image inserted with the help was cut off. How to make an image full size or scaled <object>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Kostyukevich, 2017-10-25
@limzikiki

I will offer many options.
You need to add the "preserveAspectRatio" and "viewBox" attributes to the svg tag of the image itself. To do this, open a picture for example Inkscape and do like this
Replace the width and height values ​​with their default values ​​for the viewBox, I usually set the dimensions from the svg tag itself.
Now the picture will be scaled.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question