Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Border-radius bug in firefox

Tags:

css

firefox

I've some problem with border-radius function in firefox. When i apply, it makes some kind of space, or border around the item. Can somebody tell me that this is a firefox bug or is there some resolve for that?

Here is the problem: JsFiddle

The

border-radius:50%;

line makes that, i am sure.

like image 683
radonyzsolt Avatar asked Dec 02 '25 10:12

radonyzsolt


1 Answers

Seems to me that this is a FF issue at rendering shadows with border-radius.
You could try this simple trick :

The demo

Basically, you apply the grey shadow on the parent li, make it a bit finer and then move a bit the a.ch-item child in order to make it go over the gap.

.ch-grid > li {
    box-shadow: 0px 0px 5px 15px rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    width: 198px;
    height: 198px;
}
.ch-item {
    position: relative; 
    top: -1px;
    left: -1px;
}

Of course, this is just for the idea. You might also want to apply the hover effect on the li element itself and move it 1px down and right to have a better result.

Edit : a better result

like image 72
Brewal Avatar answered Dec 04 '25 00:12

Brewal



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!