Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

border-radius not working in Chrome? Any workaround?

I have set border-radius (and -moz-border-radius for the older browsers) to 20px, and I have it working beautifully in Safari and Firefox. Then, I open up Chrome and it's refusing to accept the defined border-radius. Any suggestions to work around this in Chrome?

See the CSS coding in action here: http://jsfiddle.net/MAYea/

Screenshot in Safari:

Safari

Screenshot in Chrome:

Chrome

like image 719
Andy Dwyer Avatar asked Oct 25 '25 20:10

Andy Dwyer


1 Answers

It's not that border-radius isn't working, it's that overflow is failing to hide the overflow.

This is actually a new bug in Chrome. I have a similar problem on my Doomsday clock even though it worked perfectly in an earlier version of Chrome.

As a workaround, you can specify the border-radius on the contained elements as well as the container.

like image 53
Niet the Dark Absol Avatar answered Oct 27 '25 22:10

Niet the Dark Absol



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!