I am trying to make my css cards align right next to each other, I have tried inline-block and float right but still a nothing.
.card1 {
color: white;
background-image: ;
background-size: cover;
padding: 10rem 0 0;
margin: 30px;
max-width: 35ch;
border-radius: 20px;
overflow: hidden;
transition: transform 500ms ease, box-shadow 400ms;
}
.card2 {
color: white;
background-image: url(./images/osoandme.jpg);
background-size: cover;
padding: 10rem 0 0;
margin: 30px;
max-width: 35ch;
border-radius: 20px;
overflow: hidden;
transition: transform 500ms ease, box-shadow 400ms;
}
here is the html code, I tried flex box and wrap but still nothing they are still vertically aligned.
<div class="card1">
<div class="card-content1">
<h2 class="card-title1">Portfolio projects</h2>
<p class="card-body1"></p>
<a href="#" class="button1">Projects</a>
</div>
</div>
<div class="card2">
<div class="card-content2">
<h2 class="card-title2"> About me</h2>
<p class="card-body2"></p>
<a href="" class="button2">About me</a>
</div>
</div>