0

Possible Duplicate:
Cross-browser curved borders

I would like to create divs and other elements that will contain designed borders. The borders will be basic CSS ready borders. While I can code it, I want to know the best method and process for making the rounded-borders attribute cross browser compatible. (At least among the largely accepted browsers (Chrome, Firefox, IE, Safari). Any pointers?

Community
  • 1
  • 1

3 Answers3

0
  -moz-border-radius: 20px;
  -webkit-border-radius: 20px;
  -khtml-border-radius: 20px;
  border-radius: 20px;

Source

LazyZebra
  • 1,097
  • 16
  • 24
0

The border-radius property is already supported in Internet Explorer (from version 9 up), Firefox (version 4 up), Chrome, Safari and Opera. However, if you want to be sure you can use something like this:

.border-radius {
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}

Hope it helps.

codenighter
  • 348
  • 1
  • 4
  • 11
0

Take a look at this helpful site http://www.css3.info/preview/rounded-border/ It has explanations and working examples Also take a look at W3C advice. Very helpful http://www.w3.org/TR/css3-background/#corner-shaping

medina
  • 766
  • 1
  • 11
  • 31