You have made two nested containers. For a block with a class .mixer width is fixed, and for a block with a class .container - depends on the width of the screen .
Therefore, on a narrow screen, a block with a class .mixer extends beyond the screen boundary. And on screens as wide as 1200px block with a class .container is wider than a block with a class .mixer and goes beyond its boundary.
You can fix it in different ways - depending on your task. For example, you can add a width limit to both containers:
@import url('https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css'); .container, .mixer { max-width: 100%; } .mixer { width: 1024px; height: 200px; border: 3px solid #6B70F0; margin: 0 auto; border-radius: 5px; }
<div class="container mixer"> <div class="row"> <div class="col-md-10"> <p>ΠΠ°ΡΡΡΠΎΠΉΡΠ΅ ΠΈ ΡΠΊΠ°ΡΠ°ΠΉΡΠ΅ ΡΠ²ΠΎΡ ΠΌΠΈΠ½ΡΡΠΎΠ²ΠΊΡ:</p> </div> <div class="col-md-2"> <button class="playbtn"></button> </div> </div> </div>
But it seems to me that the code will become clearer if you issue the .mixer class as a modifier of the .container class. And 1024px set as max-width .
@import url('https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css'); .container.mixer { max-width: 1024px; height: 200px; border: 3px solid #6B70F0; margin: 0 auto; border-radius: 5px; }
<div class="container mixer"> <div class="row"> <div class="col-md-10"> <p>ΠΠ°ΡΡΡΠΎΠΉΡΠ΅ ΠΈ ΡΠΊΠ°ΡΠ°ΠΉΡΠ΅ ΡΠ²ΠΎΡ ΠΌΠΈΠ½ΡΡΠΎΠ²ΠΊΡ:</p> </div> <div class="col-md-2"> <button class="playbtn"></button> </div> </div> </div>