Home
CSS
CSS object-fit
Tryit: Image without object-fit
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> img { width:200px; height:300px; } </style> </head> <body> <h2>Image</h2> <img src="paris.jpg" alt="Paris" width="400" height="300"> </body> </html>