First of all, you probably don't understand what is resolution. As it is pretty much irrelevant, I don't wont to explain it much; will just tell you: resolution is dots-per-mm, dots-per-inch, lines-per-mm or lines-per-inch, depends on physical media, so you cannot control it.
What you mean is a different thing, called
aspect ratio:
http://en.wikipedia.org/wiki/Aspect_ratio[
^],
http://en.wikipedia.org/wiki/Aspect_ratio_(image)[
^].
What to do with it? Even though you can control it, you should. Just don't. Please see my past answer:
To Get Screen resolution[
^].
In principle, you can use CSS to define
width
and
height
attribute of a style of most objects, so you can, say place some object like that (say,
div
) and, for example, center it on a page. And then you would need to use absolute positions of elements inside it, and so on. Better don't do it.
—SA