In the block ( .result-wrapper ) I have the T-shirt itself and the position: relative block. In addition to the T-shirt, it has #selming and .example2 with absolute positioning and they are on top of the T-shirt.
But, when the screen resolution is 340px (on mobile phones), #selming and .example2 move out. Although the size of these blocks is less than 340px.
I do not understand what's the matter?
.result-wrapper { position: relative; height: 475px; } .example2 { display: inline-block; background: url(../blank-number.png) no-repeat; font-family: Arial, Helvetica, sans-serif; font-size: 31px; text-transform: uppercase; width: 202px; height: 63px; padding-top: 5px; left: 144px; top: 271px; position: absolute; } #selmimg { position: absolute; top: 75px; left: 135px; max-width: 250px; } <div class="result-wrapper pull-left"> <img alt="Именная футболка с номером" title="Именная футболка с номером" src="img/shirt-white.png" id="main-img" width="480"> <div id="selmimg"><img src="logo/bmw.png" /></div> <div class="example2"> <div id="region"></div> <div id="bukva1"></div> <div id="bukva2"></div> <div id="nomer"></div> </div> </div> 