.my-div{ transform: rotate(90deg); /* rotate x-axis and y-axis */ transform: rotateX(180deg); /* rotate x-axis */ transform: rotateY(180deg); /* rotate y-axis */ }