It is necessary that div1 remained on the left page, and div2 - on the right. a source
html, body { height: 100%; } body { background-color: #212121; background-image: url('http://momentomori.ru/img/book2.jpg'); background-size: auto 100%; background-repeat: no-repeat; background-position: center center; } .container { height: 100%; } .div1 { width: 30%; min-height: 150px; background: #ccc; float: left; margin-left: 20%; } .div2 { width: 28%; min-height: 150px; background: #c00; margin-left: 53%; } <body> <div class="container"> <div class="div1">div1</div> <div class="div2">div2</div> </div> </body>
min-widthblocks - Dmitriy Kondratiuk