Rounded Corners by CSS

July 15, 2009

Getting bored by doing rounded corners with the images, then here is css property for the rounded corners.

For that we need border-radius.htc file.

Follow the below steps:

1. Make class for the div. for eg: rounded_corner

2. Give following css properties.

.rounded_corner{
-moz-border-radius:10px;
-webkit-border-radius:10px;
behavior:url(Script/border-radius.htc);
border:1px #c0c0c0 solid;
background:#FFFFFF;
}

3. Use this class for which you wanted rounded corners.

This will help you to reduce the images and also to download the page faster.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: