Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS text background-clip very different on Firefox than on Chrome

Chrome: the desired effect enter image description here

Firefox: what is happening enter image description here

Code:

  background-color: Red;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: rgba(255,255,255,0.5) 0px 3px 3px;

Thoughts??

like image 943
james Avatar asked Oct 18 '25 10:10

james


1 Answers

Even though -moz-background-clip is supported in firefox. The 'text' value is not supported. You are going to have to go with another solution for non webkit browsers.

Example: http://nimbupani.com/using-background-clip-for-text-with-css-fallback.html

like image 64
mattdevio Avatar answered Oct 19 '25 23:10

mattdevio



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!