I have been recently playing with HTML5 and CSS3 and it is really fun. I am learning lots of new features of HTML5. Rounded corner is one of them. I thought it will be a good idea to share that with my readers. So In this post we are going to learn how we can create rounded corner div with HTML5.
In earlier version of HTML and CSS, If we need rounded corner div then we all needs to use image and without image it was not really possible. But now with the HTML5 and CSS3, It is very easy to create round corner div.
How to apply round corner to div?
There is a new CSS3 declaration for that.
Border-Radius, With this you apply round corners to boxes and div without using images for rounded corners.
Example:
Let’s create an example for rounded corner div. I have created an sample page with Visual Studio 2012.