A
A
alexeimene2021-12-30 14:59:16
css
alexeimene, 2021-12-30 14:59:16

Is it normal practice to use this method in CSS with Background-size?

Good, I would like to know if the practice of using this method is normal.
The structure of such an image:
61cd9d7e3027e530107476.jpeg

That is, there is a list of items in two columns, an odd number of them, an empty space is formed on the right, and then the content continues in the block on the left side, and then on the right there is still text, a car was needed in this empty area.
I didn’t become positioning paths, I did it through background, between this I specified background-size through Now the image, in principle, shrinks up to a certain point, the background is proportional to the width of the screen and at high resolution, even outside the container, the background is set, the background remains in place And does not fly away to the side: Reasonable Is this the solution? Just judging by the way everything works, everything is almost perfect.

background-size: calc(100vw / 2);


61cd9ea427dd3880151921.jpeg


61cd9ef6e79fc754457716.jpeg

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question