The picture is outside of the container. How to return?

Please tell me why the right picture left to the right, outside of the container.
The width of the first 756 and second width 372 and went over the 1140. The inspector also could not find that could prevent stand up straight on the right edge.5bbe001b9c45a825979666.png
March 12th 20 at 08:08
3 answers
March 12th 20 at 08:10
img{
max-width:100%;
height:auto;
}
did not dare - Marley74 commented on March 12th 20 at 08:13
March 12th 20 at 08:12
You using background-image is, not img.
Try to add background-size: contain; or background-size: cover;
. Tried both, no change. - Marley74 commented on March 12th 20 at 08:15
5bbe720367825429005691.png
View can I have it all well worth it, the problem is not in the picture, and the top of the menu because is not adjacent to the right side of the container? - Marley74 commented on March 12th 20 at 08:18
March 12th 20 at 08:14
5bbee919d8f58516719280.png
I think the problem is not in the block, and menu items that are not adjacent to the right edge of the container. Tell me how is it treated?
last-child didn't help.
Maybe something like using text-align: justify;?

Find more questions by tags CSS