I have the following image for example:
Thelineinblackisthecontainerofthepage(mobile)andinredtheimage,Inexample1iswhatIhavetoday,and2theresultI'mtryingtoreach,Icannotfindasolutionwithoutdistortingtheimage,doesitworkanyway?
followcode:
img {
display: inline-block;
width: 100%;
height: 100%;
transform: rotate(90deg);
}
.container {
background-color: #bbb;
width: 300px;
height: 400px;
}
<div class="container">
<img src="https://www.paypalobjects.com/digitalassets/c/website/marketing/na/us/credit/hub/prepaid-image.png?01AD=3tN7YRjc7dW4pgCz6srp1Zwrd3T603duDiW7xKKoinH54ISdhxQdalQ&01RI=BDC70922D249C25&01NA="/>
</div>