Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

X and Y Values

Status
Not open for further replies.

wscreate

Technical User
Jan 28, 2003
6
US
I have a script that uses X and Y values to place a menu.

I know what the Y value is (180 pixels from top) but the X value changes dependent on which screen resolution the user views the site in.

Is there a way to adjust the value of the X value (right to left) dependent on the screen resolution or if the user has minimized (made smaller) the browser window?
 
The easyest way is to use a table and set the <tr style=&quot;width:10%&quot;...
This way the table will resize when the screen is resized.

The hard way is to use the events:
document.onload
To check screen resolution:
screen.height
screen.width
window.onresize
To check window size:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top