I have a division to which I have added an image with the content attribute of a :before pseudo:
#headerBox:before{
position:absolute;
content:url(images/shadow2.svg);
}
Is possible with jQuery to access and set that image's width? I want to scale the image to the window's innerWidth.
I have tried to use the background-image attribute - that, I can scale - but the pseudo-selector doesn't seem to take that attribute, the image doesn't show.