How can I center the black box on my webpage without it moving up and down when adjusting padding or causing the background image to scroll? I'm getting confused with all these adjustments, can someone please help me understand what's going on?
#banner_image{
background: url(../Images/intro-bg_1.jpg) no-repeat center center;
padding-top: 10%;
padding-bottom: 25%;
text-align: center;
color: #f8f8f8;
background-size: cover;
}
#banner_content{
background-color: rgba(0, 0, 0, .7);
max-width: 660px;
position: relative;
padding-top: 6%;
padding-bottom: 6%;
margin-top: 6%;
margin-bottom: 6%;
margin-left: auto;
margin-right: auto;
}
<div id="banner_image">
<div class="container">
<div id="banner_content">
</div>
</div>
</div>