Below is the code snippet I am working on, which utilizes Bootstrap 4:
.resource{
border:1px solid red;
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<div class="resource">
<div class="container">
<div class="row justify-content-center">
<div class="wrapper d-flex flex-wrap justify-content-center">
<div class="card col-5">
<p>test1</p>
</div>
<div class="card col-5">
<p>test1</p>
</div>
<div class="card col-5">
<p>test1</p>
</div>
</div>
</div>
</div>
</div>
I would like to align the cards to the left instead of having them centered. Removing justify-content-center
from the .wrapper
will achieve this, but then the .wrapper
won't be centrally aligned within the .container
. How can I make both the .wrapper
centered in the .container
and keep the .card
elements left-aligned?