My website needs a responsive rectangle where I can easily adjust the height and width. However, when I try to rotate the rectangle, the content also rotates 90 degrees. Can anyone help me with this issue?
Thank you in advance for any assistance.
Snippet of code:
.project-pill{
border: 5px solid red;
position: relative;
text-align: center;
width: 35%;
transform: rotate(-90deg);
}
.project-pill::after{
content: "";
display: block;
padding-bottom: 80%;
}
.project-pill .content{
position: absolute;
}
<div class="wrapper-project">
<div class="project-pill">
<div class="content">
</div>
</div>
</div>