In this example you will learn, how to create thumbnail image with CSS. To create thumbnail image with CSS, use the border property.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | <!DOCTYPE html> <html> <head> <style> img { border: 2px solid orange; border-radius: 3px; padding: 7px; } </style> </head> <body> <img src = "https://www.tutorialspoint.com/videotutorials/images/ coding_ground_home.jpg" alt="Online Compiler" width="300" height="300"> </body> </html> |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.