In reply to:
Is there a code that will resize a page to fit depending on the sreen resolution?
Yes - it's called a browser.
Write your HTML without any preconceptions about how it will be displayed, and you'll find you have to spend less time fixing it - meaning more time to write interesting content that people want to read.
Why do you think people will have browser windows of only the two sizes you mention? Most people I know prefer a browser that's taller than it is wide, like most books. I don't know anyone who uses a browser of anything like the proportions you suggest.