Hi folks... i have a quandry ive gotten myself into over resizing layers due to a new scrolling layer script i picked up. I need to modify it so the layers resize properly with a window, but as some of you may know layers only have set and % width options. Well.. using that % width i came up with a layer that is either too small or too long for the graphical area i want to place under it (which also resizes via a table). The layer dimensions and positions are handled via CSS.
The question i have is if there is a way to use PHP (&/or Javascript) to get the current width of the window, pass it to a variable and then after removing the necessary widths that fill up the rest of the page from the variable's value (the layer wont be against the left margin), get the CSS to read the current variable's value for the width? If there is, that will fix the issue im running into (I hope), as i will always be able to directly set the width to what the open space in the graphic below it should be.
All ive figured out from looking at the script is that there would need to be code to handle the page resizing (but im fairly certain it can be handled by having the code reload the page on a resize), as well as any other wonderful issues that result between IE and Netscape. Im not looking to run this page on anything less than IE 5 and netscape 4.75.
Can anybody lend a hand and help a guy out?