Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> .container { background-color: red; color: white; aspect-ratio: 3 / 2; } </style> </head> <body> <h2>Maintain Aspect Ratio 3:2</h2> <p>Resize the window to see the effect.</p> <div class="container"> <p>3:2 Aspect ratio</p> </div> </body> </html>