i see two soloutions, one easy but possibly less accurate, and the other is harder but almost guaranteed accuracy.
1)instead of using the center tag to place the background image, position it absoloutly also. this will allow the background to drift with the iframe, search box, and the date.
2)here is what you do:
next, you need to start with 640x480 rez, set the css attributes so that the iframe lines up with its container. no need to worry about the other two right now, as long as you make sure the iframe lines up exactly where you want it.
repeat this procedure for 800x600, 1024x768, 1152x864, 1280x1024, 1600x1200, every screen resouloution you can get your hands on. (those are all the ones my video card will hold). lastly, make a script that tests the screen.width for the different widths and positions the content accordingly.
example:
var offBy;
if (screen.width==600)
offBy=0;
else if (screen.width==1024)
offBy=79;
..
...
....
with(document.all){
iframeDiv.style.pixelLeft+=offBy;
searchDiv.style.pixelLeft+=offBy;
dateDiv.style.pixelLeft+=offBy;
}
hope that helps. try the first one first, then the second one.
Robert Carpenter
questions? comments? thanks? email me!
linkemapx@hotmail.com
Icq: 124408594
AIM & MSN: robacarp