I
I
IIIu6ko2020-04-22 15:34:29
css
IIIu6ko, 2020-04-22 15:34:29

How to make such a background from svg to full width?

5ea0398307cef123845972.png
Please tell me how to make this background. White is svg.
The background should stretch to the full width, is it possible to do this without being clumsy?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
IIIu6ko, 2020-04-23
@IIIu6ko

In general, the problem was solved. I cut the background from above and below, substituted it where necessary, but it did not stretch to the full width. svg, the proportions are visible there. This is solved by adding an attribute preserveAspectRatio="none"to the svg itself.

I
Igor, 2020-04-22
@Igor_307

I would do this:
split it into separate sections,
save the background in svg
and set it for each section through background
and background-size cover

V
Valentin Birulya, 2020-04-22
@nykakdelishki

Here I made up a little bit, do you need it?

Can't you use background-image?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question