fixed window resize and percentage margin issues