View Full Version : Page resolution conditions

01-29-2008, 02:37 AM
I am trying to create a page where it will look the same if the screen is resolution 1024 x 768 or if the screen is resolution 800 x 600.

The below finds the resolution but the page looks different depending on the resolution. Please advise how I can make a web page look the same no matter what the resolution?

if ((screen.width>=1024) && (screen.height>=768))
divWidth = 1024;
divHeight = 768 ;
document.write("high res 1024");
divWidth = 1024;
divHeight = 768 ;
document.write("low res 800");

<table width=100&#37;>
<td><font size=+4>
long scroll test where the page will scroll different width depending on resolution.....

In my above example the page width scrolling changes depending on resolution. I want it to be the same if either resolution is used.

01-29-2008, 03:02 AM
If you want it to look the same, than why are you using percentages instead of fixed widths?