L
L
LolExtasy2021-01-06 13:44:29
css
LolExtasy, 2021-01-06 13:44:29

How to adapt svg?

Hello, I have a problem with svg. When the screen is reduced, svg goes beyond html and the layout breaks, in what ways can this svg be adapted. All svg adapts or still depends on their rendering.
Here is the svg itself Tyk

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Talalaev, 2021-01-06
@LolExtasy

Just like the others.
Let's say you can start with a parent and width constraint, conditionally:

svg {
max-width: 100%;
}

In general, the practice is to put svg in a container and thus steer.
And so there are libraries for this, including js

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question