Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Cuireadh an snáithe seo sa chartlann. Cuir ceist nua má tá cabhair uait.

Overwriting <img> "src" attribute with css "content" does not work

  • Gan freagra
  • 1 leis an bhfadhb seo
  • 12 views
more options

Hello,

Seems there is some difference between Firefox and other browsers.

If you want to overwritethe src of an image, you can use "content" from css. In my case this is used for customerspecific styling, being done via CSS only, while the default image is provided directly over src attribute inside html.

https://jsfiddle.net/atXoR/qn4he25v/

This Problem appears in Firefox for Windows and Firefox for Android This Problem doesnt appear for Chromium', Firefox on IOs, Safari on IOs


Greetings, Stephan

Hello, Seems there is some difference between Firefox and other browsers. If you want to overwritethe src of an image, you can use "content" from css. In my case this is used for customerspecific styling, being done via CSS only, while the default image is provided directly over src attribute inside html. https://jsfiddle.net/atXoR/qn4he25v/ This Problem appears in '''Firefox for Windows''' and '''Firefox for Android''' This Problem doesnt appear for Chromium', Firefox on IOs, Safari on IOs Greetings, Stephan