0

I am trying to show a line number for every line. My code working properly in Chrome but in Firefox it's not working because of background-attachment: local; not accepting in Firefox. I want it should work in both browsers.

JsFiddle: https://jsfiddle.net/k8go4d5b/

Here is my code:

<!DOCTYPE html>
<html>
<head>
<style>
textarea{
    background: url(http://i.imgur.com/2cOaJ.png);
background-attachment: local;
background-repeat: no-repeat;
padding-left: 35px;
padding-top: 10px;
    border-color:#ccc;
}
</style>
</head>
<body>

<textarea rows="10" cols="40"></textarea>

</body>
</html>
santosh
  • 742
  • 8
  • 19
  • 1
    Your fiddle worked for me on Firefox... which FF version are you using? check here: https://caniuse.com/#feat=background-attachment – Akber Iqbal Feb 10 '20 at 03:25

1 Answers1

0

It works for me in Firefox. Check the version you are using, here you can find the allowance of this resource in firefox

Hope this helped. :D

Mateo Randwolf
  • 2,823
  • 1
  • 6
  • 17