Position a html layer over a swf

I am trying to put an iframe over a swf file , this work putting the iframe in a layer and its positioned where I need it to be relative to my swf movie . (simulating an I frame in a flash movie) Now here is the problem , when I resize my browser , the layer/iframe is out of position . How can I correct this