Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to set resolution as 4:3 in an ASP.NET Website.
Posted
Comments
Sergey Alexandrovich Kryukov 6-Oct-13 3:58am    
Why?
—SA

1 solution

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
 
Share this answer
 
Comments
Mehdi Gholam 6-Oct-13 3:55am    
5'ed
Sergey Alexandrovich Kryukov 6-Oct-13 3:57am    
Thank you, Mehdi.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900