Answer the question
In order to leave comments, you need to log in
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
Look at this example.
It seems to be what you are looking for.
Source is here .
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 questionAsk a Question
731 491 924 answers to any question