I have an image which I rotate with css rotate property to 90deg.
Problem, once rotated, the image keep its size and is bigger than the container.
How to fix this with TailwindCSS ?
Here is a playground
Here is the code :
<div class="p-8">
  <div class="h-[315px] w-[560px] border-2 border-solid">
    <img src="https://source.unsplash.com/user/c_v_r/1900x800" class="h-full w-full rotate-90 transform object-fill" />
  </div>
</div>