-webkit-border-radius works differently than -moz-border-radius

My site shows up differently in Safari and Firefox. I would like CSS to make it look like Safari. I know that I could use two div boxes, one for the outline, one for the image, but I like how I need only one in Firefox and it draws the outline and the image. Is there anyway for the Safari curve to display the outline and image?

Safari:

Safari border radius

Firefox:

Firefox border raidus

<img src="asset.jpg" class="example">

img.example { width: 250px; height: 250px; background: rgba(0, 0, 0, .6); padding: 18px; -moz-border-radius: 50px; -webkit-border-radius: 50px; border-radius: 50px; }

+1
source share
1 answer

This is a known bug in webkit browsers.

See an example

In short, yes, at the moment you should wrap the image in a div. Sucks.

See these error reports:

http://code.google.com/p/chromium/issues/detail?id=82417
https://bugs.webkit.org/show_bug.cgi?id=30475

div,

+3

All Articles