The CSS scale() Function
The scale() function increases or decreases the size of an element (according to the parameters given for the width and height).
The following example increases the

Example
div {
transform: scale(2, 3);
}
The following example decreases the
Example
div {
transform: scale(0.5, 0.5);
}
The CSS scaleX() Function
The scaleX() function increases or decreases the width of an element.
The following example increases the
Example
div {
transform: scaleX(2);
}
The following example decreases the
Example
div {
transform: scaleX(0.5);
}
The CSS scaleY() Function
The scaleY() function increases or decreases the height of an element.
The following example increases the
Example
div {
transform: scaleY(3);
}
The following example decreases the
Example
div {
transform: scaleY(0.5);
}
Want to go beyond the notes?
Join Aivasu Tech Institute's CSS course — live mentorship, real projects, and 100% placement support.
Enroll Now — Free Demo Available✳ Common questions
Scale – FAQs
Quick answers about learning Scale in CSS.