tags:

views:

91

answers:

3

I have a stupid question,

If I want to add round corner for an element in browsers which support some stuff of CSS3, I have to repeat style several time for each browser, because it is different ?

For ex :

         -moz-border-radius: 12px; /* FF1+ */
         -webkit-border-radius: 12px; /* Saf3+, Chrome */
          border-radius: 12px; /* Opera 10.5, IE 9 */

It means, that I have to add 3 styles for this radius border, doesn't it ?

+4  A: 

Disclaimer: hopefully you've found this a year after my writing it and it's now completely wrong, and we have a standard, yay!

For now, yes this is correct...you need all the rules.

Unfortunately, this is a result of a spec being implemented while in flux, but that's how the web has evolved this far, sometimes the spec drives development, more often with the web, browsers do neat stuff and it's a spec later.

Hopefully once the spec is finalized, we'll have only border-radius: 12px;. Since Firefox and Chrome push automatic updates (not sure about Safari?) this is much more likely to happen, as opposed to IE users who may never upgrade.

Nick Craver
It's recommended for browsers to implement the non-prefixed thing when the spec reaches Candidate Recommendation. I'll be updating css3please to make sure it stays in sync with the specs and best practices.
Paul Irish
A: 

border-radius is the official CSS3 rule for adding a border radius. However, like Nick points out, this is not supported in all browsers so you need to add the propriety versions to get it to work in as many browsers as possible.

Dan Diplo
A: 

Try this: http://css3please.com/

the_drow