There is a block.There is a picture and text in it.The picture is added through the style tag in html.On small screens, the text does not fit and therefore you need to increase the size of the block.Width.I tried adding background-size: cover, but it didn't help.Thank you in advance.

2 Answers 2

Read object-fit, suitable for this task
Set the parent unit:
width: 100%;