I want to use rounded border in my site. So, I use the CSS rounded border property like this:
-moz-border-radius-topright: 7px;
It works well in Firefox, but in Google Chrome, it does not work. Why?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The reason why, is that is a Mozilla specific (i.e. Firefox) CSS selector. The relevant CSS3 selector would be:
Webkit (i.e. Safari) also has a non-standard selector:
-webkit-border-top-right-radius. Since Google Chrome is based on Webkit, I’d expect-webkit-border-top-right-radiusto work.I’d personally include all 3 selectors (as below), then you won’t need to edit sometime in the future when everyone catches up with the standard. (Firefox 3.5 is already there as far as I know).