F
F
fajjet2016-02-22 17:20:42
css
fajjet, 2016-02-22 17:20:42

How to make rubber svg?

Let's say there is a block that can have different sizes and there we insert svg with absolute position, width 100% and height 100%. Here svg should stretch like img without respecting the proportions. That is, if it is a circle, then it should stretch and become, for example, an oval. And so that all this happens without the participation of js. Is that possible?
ps Using path

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Antony Bark, 2016-03-04
@tolfy

maybe so? preserveAspectRatio="none"

#
#rybak, 2016-03-04
@Ravell

Look at this example.
It seems to be what you are looking for.
Source is here .

E
Eugene, 2016-02-24
@iamd503

Set svg width="100%" height="100%
not?

B
Brendan Castaneda, 2020-04-19
@ae_ph

If svg is written in HTML as code or through object.
Then write the following in css...
svg {
width: 100%;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question