Home
CSS
CSS 2D Transforms
Tryit: The scaleX() 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: scaleX(2); } </style> </head> <body> <h1>The scaleX() Method</h1> <p>The scaleX() method increases or decreases the width of an element.</p> <div> This div element is two times of its original width. </div> </body> </html>