Can you please explain your question in more detail. I am not able to understand your question properly.
If I'm not getting it wrong, you want to set size of your web page in such a way that it can change according to the resolution of screen or fits to any screen regardless of its size.
For that you can simply set your page width in percentage.
or what ever percent of screen you want to use.
Hope this will solve your problem.