Click here to Skip to main content
15,749,185 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Helo to all.. I am making an web application

How can I get the screen resolution ?

People uses different-2 resolutions, How can I set my web applicaion

that will look sililar to all resolution...

Thanks in advance.....

[edit]rjm: removed bolding from question.[/edit]
Updated 12-Feb-10 23:03pm

1 solution

You can use CSS to lay out your app to position itself for different resolutions. You can use screen.width and screen.height to get the resolution in javascript, but you can't know on the server unless you pass it back from the client.
Share this answer

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