I'm trying to center a container in Bootstrap 4. I have an element with a width of 300px.
.guide-background{
background: url("https://www.webascender.com/wp-content/uploads/executive-guide-1.jpg");
background-repeat: no-repeat;
background-size: cover;
height: 350px;
/*filter: brightness(50%);*/
}
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet"/>
<section id="guide" class="guide-background">
<!-- I want to center this container with id #center_it -->
<div class="container border border-danger" id="center_it">
<div class="row">
<div class="col align-self-center">
<h2 class="text-center"> <a href="" class="">Center Me</a></h2>
</div>
</div>
</div>
</section>
After putting a container inside it, how can I center the container within it? I attempted to use the grid system, but was unsuccessful. I really need help with this.