How to create a rounded corner of a background using CSS?

How to create a rounded corner of a background using CSS?

+4
source share
3 answers

Use this css:

.box_round { -moz-border-radius: 12px; /* FF1+ */ -webkit-border-radius: 12px; /* Saf3-4 */ border-radius: 12px; /* Opera 10.5, IE 9, Saf5, Chrome */ } 

And then just use the class in your HTML, like this

 <div class="box_round" style="background-color:red">This is a test</div> 

I added a background color: red - only for test dolls so you can see the rounded corneons.

NTN

+10
source

This is only supported in CSS 3 .

+2
source

Take a look at the CSS3 PIE project. This can help you with CSS3 related issues in older versions of IE.

0
source

All Articles