Change the height of element using CSS

CSSWeb DevelopmentFront End Technology

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;
}
raja
Published on 02-May-2018 12:34:34
Advertisements