I am facing a challenge with the alignment of 3 cards
within a card-group
that are contained in a div
with the col
class, which is wrapped by a div
with the row
class, all within a div
with the container
class. Currently, the cards
are not centered.
I have attempted different approaches, including using justify-content-center
in the row
div
, mx-auto
in the col
div
, and even the standard center
HTML tag in various sections such as the col
, row
, and card-group
div
. Despite all of these attempts, I have been unable to achieve the desired center alignment.
<div style="position:relative;">
<div class="animatedParent shrink" style="color:#ddd;background-color:#424242;text-align:center;padding:50px 80px;">
<div class="container">
<div class="row justify-content-center">
<div class="col">
<div class="card-group animatedParent mx-auto" data-sequence='250'>
<div class="card animated fadeIn slow rounded-0" style="max-width: 250px;" data-id='1'>
<img class="card-img-top animated fadeIn slow rounded-circle" src="/images/justin.jpg" alt="Justin Worsham" data-id='2'>
<div class="card-header animated fadeIn slow" style="color:black; font-weight:bold;" data-id='3'>
Justin Worsham
</div>
<div class="card-body animated fadeIn slow" style="color:black;" data-id='4'>
<ul>
<li>CEO</li>
<li>Head Designer</li>
<li>Head Developer</li>
<li>Head Video Editor</li>
</ul>
</div>
</div>
<div class="card animated fadeIn slow" style="max-width: 250px;" data-id='1'>
<img class="card-img-top animated fadeIn slow rounded-circle" src="/images/daniel.jpg" alt="Daniel Crews" data-id='2'>
<div class="card-header animated fadeIn slow" style="color:black; font-weight:bold;" data-id='3'>
Daniel Crews
</div>
<div class="card-body animated fadeIn slow" style="color:black;" data-id='4'>
<ul>
<li>CFO</li>
<li>Designer</li>
<li>Developer</li>
<li>Video Editor</li>
</ul>
</div>
</div>
<div class="card animated fadeIn slow rounded-0" style="max-width: 250px;" data-id='1'>
<img class="card-img-top animated fadeIn slow rounded-circle" src="/images/julian.jpg" alt="Julian Ellis" data-id='2'>
<div class="card-header animated fadeIn slow" style="color:black; font-weight:bold;" data-id='3'>
Julian Ellis
</div>
<div class="card-body animated fadeIn slow" style="color:black;" data-id='4'>
<ul>
<li>Jr Developer</li>
<li>Server Side Code</li>
<li>Intern Specialist</li>
<li>Back-end Developer</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>