Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How do I replace a jQuery inserted image?

Hello!

I am trying to replace an ugly image but don't know how to do it.
I've tried pseudo before, Z-index background image etc.

any tips?
899 x 583 - 90K

Comments

  • edited March 17 Chrome
    img[src$="redcross.png"] {
    background: url(https://replace-this-with-new-img-url.com)no-repeat!important;
    height: 0!important;
    width: 0!important;
    padding-left: 14px!important;
    padding-top: 14px!important;
    }
    This assumes the new image is also 14px. If not, adjust both padding properties to the dimensions of the new image, or add background-size: 14px 14px!important; to change the dimensions via CSS to match.
Sign In or Register to comment.