- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- 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 CSS3 Rounded Corners?
To create rounded corners, use the border-radius property in CSS3. Following is the code for creating rounded corners −
Example
<!DOCTYPE html> <html> <head> <style> body { font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; } div { display: inline-block; width: 200px; height: 200px; text-align: center; font-size: 30px; } .rounded { border-radius: 24px; border: 4px solid green; } .normal { border: 4px solid green; margin-left: 20px; } </style> </head> <body> <h1>CSS3 rounded corner example</h1> <div class="rounded">Rounded Corners</div> <div class="normal">Default corners</div> </body> </html>
Output
The above code will produce the following output −
- Related Articles
- CSS3 Rounded corners
- How to create EditText with rounded corners in Android?
- How do I create a listView with rounded corners in Android?
- How do I create a TableView with rounded corners in iOS?
- Create a padded grey box with rounded corners in Bootstrap
- How to add rounded corners to a button with CSS?
- How to make custom dialog with rounded corners in android?
- How to make an ImageView with rounded corners on Android App?
- Add right rounded corners to an element in Bootstrap
- Add left rounded corners to an element in Bootstrap
- Add bottom rounded corners to an element in Bootstrap 4
- Add top rounded corners to an element in Bootstrap 4
- How to display an image with rounded corners on iOS App using Swift?
- How to make an ImageView with rounded corners on Android App using Kotlin?
- How to Create CSS3 Keyframe Animations?

Advertisements