Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS - New Firefox-release doesn't show Border-Image anymore

Tags:

html

css

firefox

After the Firefox update the Border Image doesn't show up anymore at all? You might have defined somthing like this:

border-width:30px;
-moz-border-image: url('border.png') 64 64 64 64 stretch stretch;
   -webkit-border-image: url('border.png') 64 64 64 64 stretch stretch;
   -o-border-image: url('border.png') 64 64 64 64 stretch stretch;
like image 610
Halest Avatar asked Sep 06 '12 08:09

Halest


3 Answers

I had to look around for a bit to realize it's a Firefox Problem. First I thought AdBlock might have just blocked it for some reason. It's actually a change Mozilla did to their CSS Interpretation. You now MUST add this property underneath it for it to work:

border-style:solid;

Hope I could help.

like image 171
Halest Avatar answered Oct 19 '22 11:10

Halest


As per the specifications, Firefox requires border-image-width to be set.

Just include the above property.

Here, border-style will correct the issue, but to be more logical and related, its better to use border-image-width instead of border-style or border-width sometimes.

like image 2
YaswanthJg Avatar answered Oct 19 '22 11:10

YaswanthJg


Consider adding:

border: 15px solid transparent;

Where 15px is just an example.

like image 1
Maciej Sitko Avatar answered Oct 19 '22 12:10

Maciej Sitko