Home
CSS
CSS 2D Transforms
Tryit: The scaleY() method
Run ❯
Get your
own
website
Result Size:
625 x 534
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <head> <style> div { margin: 150px; width: 200px; height: 100px; background-color: yellow; border: 1px solid black; transform: scaleY(0.5); } </style> </head> <body> <h1>The scaleY() Method</h1> <p>The scaleY() method increases or decreases the height of an element.</p> <div> This div element is half of its original height. </div> </body> </html>