Trying to layer a frame with an image (that is dynamically uploaded and changed often). Problem is, if the user doesn’t upload an image the frame goes up with the negative margin.
The frame needs to stay put, even if an image doesn’t get uploaded. I understand WHERE the negative margin is coming from, but where does the code need to be modified to where the frame will stay put?
You’ll need to give us a working example with html and css and not php as its too awkward to debug.
I’m not sure I understand what you are doing but it looks like you are dragging an image (wendframe) on top of another image (wendcoup). If wendoup is missng then wendframe is positioned miles above because the original image is no longer taking up space in the document.
If the images are always the same size then preserve the space with a div to start with so it doesn’t matter if the image is there or not. You could then just use a background image for the frame instead of a foreground image anyway if I understand what a frame is.
Don’t use relative positioning anyway as that will leave a hole in the page. Either drag it with a negative margin or place it absolutely into position - assuming that dimensions aren’t going to change.
If none of the above is suitable then knock up a working demo (css /html not php) and we’ll take another look