Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
Change the height of element using CSS
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;
} Advertisements
