Use the scaleY() method to change the height of the element with CSS.
Let us see the syntax −
scaleY(n);
Here, n is a number representing the scaling factor.
Let us see an example −
div {
width: 40px;
height: 50px;
background-color: black;
}
.myScaled {
transform: scaleY(0.9);
background-color: orange;
}