Suraj
Suraj

Reputation: 2553

border-image not working in mozilla

I am applying border-image using css like below:

 border-image: url('/assets/btn-border.png') 10 10 10 10;

It is working fine for Chrome but in Mozilla the border isn't appearing.

I tried to use .gecko to that class but that didn't work.

What's the issue here?

Upvotes: 0

Views: 159

Answers (2)

Shailesh Katarmal
Shailesh Katarmal

Reputation: 2785

You have to add the style for firefox

border-style: solid;
border-image: url('/assets/btn-border.png') 10 10 10 10;

Upvotes: 1

Eric So
Eric So

Reputation: 465

add

border-style: solid;

should works

Upvotes: 1

Related Questions