Webkit border radius sometimes take effect

Tags: css webkit css3

This issue is about the CSS3 border-radius property (http://www.css3.info/border-radius-apple-vs-mozilla/)

An example of this problem is here:


In this URL, I have rounded divs that appear to be rounded in FF3, but on Safari and Chrome the rounded corners are not there.

The style is as follows:

-webkit-border-bottom-left-radius: 2px;
-webkit-border-bottom-right-radius: 92px;
-webkit-border-top-left-radius: 92px;
-webkit-border-top-right-radius: 2px;

I'm fairly sure that this CSS is formatted correctly, so I'm clueless as to what the problem is.

By : jamtoday


simple type just use:

border-radius:92px 92px 2px 2px;


border-radius:top right bottom left;

Don't you need to apply a border or border-width property as well as the various border-radius properties?

Also, I've noticed Safari dropping the radius above certain radius values - try reducing the pixel values

For anyone referring to this for help with rounded corners, I agree with Jacob's answer regarding Webkit, but the question also mentioned Chrome not working. Chrome uses standard CSS3 rounded corners which are exactly like Webkit's, but without the preceding '-webkit-' on the rule. These are as follows:


To take into account Firefox, Webkit and Chrome, you'd need to do something like this:


The third set of rules are CSS3 rules and are supported by Chrome. This is a good way to also get rounded corners in IE using something like CSS3Pie: http://css3pie.com/

This video can help you solving your question :)
By: admin