.jumbotron {
background-image: url(background.jpg);
color: white;
text-align: center;
}
<div class="jumbotron">
<h1 class="display-4">My Awesome App</h1>
<p class="lead">This app is truly amazing!</p>
<p>Want to learn more?</p>
<p>Join our newsletter!</p>
<hr>
<form class="form-inline" id="jumbo-form">
<div class="form-group mx-sm-3 mb-2">
<input type="password" class="form-control" id="email" placeholder="Email">
</div>
<button type="submit" class="btn btn-primary mb-2">Sign Up Now</button>
</form>
</div>
The content before the form inside the jumbotron class is centered, but the form itself appears aligned left. I have tried various solutions such as using absolute positioning and margin auto, however, none seem to work for me.