Home
CSS
CSS Style Images
Tryit: Create thumbnail image
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 { border: 1px solid #ddd; border-radius: 4px; padding: 5px; width: 150px; } </style> </head> <body> <h2>Thumbnail Image</h2> <p>Use the border property to create thumbnail images:</p> <img src="paris.jpg" alt="Paris" style="width:150px"> </body> </html>