What height to set the child layer with background-size: contain?

jsfiddle
actually there is a background overlay (I ask it through before), I can not understand what height he ask, so he did not drop out from the main background?

or give up the job block height directly, and place it through pading-top say
July 9th 19 at 10:32
2 answers
July 9th 19 at 10:34
Solution
In General it is necessary to know
background-size: cover;
background-position: center;
July 9th 19 at 10:36
He does not fall, overlay all is well, he height of exactly 100% from the parent. The parent put up the border and see that everything is OK.
sense to hang border, visually and so you can see that if you contain the height of the background is reduced, overlay all 100% height, the bottom see the grey bar - Missouri.Terry commented on July 9th 19 at 10:39
: maybe it's in the height of the block which is specified 349px? - Timmothy.Thiel commented on July 9th 19 at 10:42
: written as: or give up the job block height directly, and place it through pading-top say - Missouri.Terry commented on July 9th 19 at 10:45

Find more questions by tags HTMLCSS