I have been experimenting with Bootstrap
Trying to create a layout with an image aligned to the top right, a rotated paragraph with a star symbol, and a vertical arrangement of five star symbols. Here's a screenshot of what I'm aiming for:
However, I'm facing difficulty in aligning the Google review text and five star font awesome symbols vertically centered on the right side.
.contact-card {
background-color: #88206D;
border: solid 2px #fff;
border-radius: 21px;
min-height: 406px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
box-shadow: 6px 6px 9px 0px rgba(0,0,0,0.5);
-webkit-box-shadow: 6px 6px 9px 0px rgba(0,0,0,0.5);
-moz-box-shadow: 6px 6px 9px 0px rgba(0,0,0,0.5);
}
#google-icon img {
height: 44px;
z-index: 1000;
background-color: #fff;
padding: 5px;
border-radius: 22px;
box-shadow: 2px 2px 6px 0px rgba(0,0,0,0.53);
-webkit-box-shadow: 2px 2px 6px 0px rgba(0,0,0,0.53);
-moz-box-shadow: 2px 2px 6px 0px rgba(0,0,0,0.53);
}
.google-review {
-webkit-transform: rotate(90deg);
-moz-transform: rotate(90deg);
-ms-transform: rotate(90deg);
-o-transform: rotate(90deg);
}
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css" rel="stylesheet"/>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet"/>
<main>
<div class="container">
<div class="row contact-card">
<div class="map col-5" id="map"></div>
<div class="offset-2 image-scroll"></div>
<div class="map-des col-3 text-white my-auto pt-4" id="m-des"></div>
<!-- Struggling in this part -- >
<div class="col-1 text-center">
<div id="google-icon">
<img src="https://i.ibb.co/nknMt4k/search.png" class="google-icon">
</div>
<div class="side-star">
<p class="google-review text-nowrap">
<strong>Google Review</strong>
</p>
<div class="five-star d-flex flex-column">
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
</div>
</div></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>