Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS rounded corners on img in firefox

The problem is quite simple, but I spent too much time searching for answer. I'd appreciate if someone can throw a little light on the problem.

The CSS -moz-border-radius works with a div, but I'm trying to make it work on img tags.

-webkit-border-radius works flawlessly on img in Chromium.

I have also tried to wrap the img in a div, which has rounded corners and uses overflow: hidden;. It works in Chromium, but no hope in Firefox.

like image 890
gabriel9 Avatar asked Dec 14 '22 01:12

gabriel9


2 Answers

you could put the image as a background of a div then have that div have rounded corners

like image 167
John Boker Avatar answered Dec 27 '22 03:12

John Boker


Here is a solution which can help you to solve this problem

http://learneveryday.net/css/css-round-corner-menu-with-image/

like image 43
arifur rahman Avatar answered Dec 27 '22 03:12

arifur rahman