I have set up my website so that my background image dynamically resizes when the window is resized (no stretching, just cutting part off if the ratio is too small). How can I reposition my navigation containers dynamically as well to work with this. Percentage doesn't work, because if the viewer resizes the window in only one dimension, it throws the positioning way off.

The website is not live, so I can't show you, but this is how I'm doing the background resize:

CSS:
Code:
#backgroundimage{
	min-height:100%;
	max-width:1280px;
	max-height:980px;
	width:auto;
	height:100%;
}
HTML:
Code:
<img src="images/background.jpg" id="backgroundimage"/>