The problem is this: two background-pictures are not on the same line. How to fix it?
#img { background-position: left; vertical-align: middle; display: inline-block; padding: 0px; width: 348px; height: 286px; margin: 0px; background: url(el1.png) no-repeat; } #img1 { background-position: right; vertical-align: middle; display: inline-block; padding: 0px; width: 348px; height: 286px; margin: 0px; background: url(el2.png) no-repeat; }
<div id="img"></div> <div id="img1"></div>
It is necessary that the first remained in place on the left side of the screen, and the second was on the right side of the screen.