I am having trouble aligning the "Check Github" button in the center of the card. I have tried using item-align: center;
, justify-content:center;
, and margin-right: 50px;
but none of them seem to work on this particular element.
Can you please provide guidance on how to solve this issue? Thank you.
Below is my HTML code along with the CSS section for the button:
.btn {
border-radius: 1rem;
transition: all 0.5s;
font-family: 'Open Sans', sans-serif;
font-weight: lighter;
font-size: 16px;
opacity: 85%;
background-color: #ffc229;
padding: 1rem 0.3rem;
margin-bottom: 10px;
margin-top: 10px;
}
<section>
<div class="flex">
<div class="col">
<a href="#">
<img src="pac_man.jpg" width="" height="" alt="Pac-Men">
</a>
<h3>Pac-Men</h3>
<p>Create as many or as little Pac-Men as you like and see them bouncing
around!</p>
<p> Try it with the <a href="https://raw.githack.com/mayazhl/PacMen_Factory/main/index.html"
target="_blank">live demo.</p>
<a class="btn" href="https://github.com/mayazhl/PacMen_Factory">Check Github</a>
</div>
</section>