

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to create rounded and circular images with CSS?
Following is the code to create rounded and circular images with CSS −
Example
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> img { border-radius: 50%; width: 300px; height: 300px; } </style> </head> <body> <h1>Rounded Images Example</h1> <img src="https://i.picsum.photos/id/271/400/400.jpg"> </body> </html>
Output
The above code will produce the following output −
- Related Questions & Answers
- Create rounded image with CSS
- How to create responsive Modal Images with CSS and JavaScript?
- How to create Border Images in CSS
- How to create a slider that compares two images with CSS and JavaScript?
- How to style images with CSS?
- Set a rounded active and hover button with CSS
- How to add rounded corners to a button with CSS?
- How to create EditText with rounded corners in Android?
- How to add visual effects to images with CSS?
- How to create CSS3 Rounded Corners?
- How to change background images on scroll with CSS?
- How to align images side by side with CSS?
- How to create tabs with CSS and JavaScript?
- How to create popups with CSS and JavaScript?
- Create a circular badge with Bootstrap
Advertisements