What is the best way to create a web page that adjusts its layout when the browser window is resized?
I have experimented with using tables and CSS float sections to organize my page elements, but I want the display to adapt as the browser window size changes.
I currently have a working solution involving AJAX PRO and DIVs with overflow:auto, along with an onwindowresize hook. However, I find this method cumbersome. Is there a more efficient approach?
Thank you to everyone who has provided suggestions so far. I plan to test out various methods and select the most effective one as the solution for this issue.
Using CSS and percentages seems to be the most successful option, which aligns with what I originally implemented. By utilizing a visibility:hidden div set to 100% by 100%, I can determine the client area of the window (a challenge in some versions of IE). Additionally, an onwindowresize JavaScript function triggers the AJAXPRO methods to redraw the layout-cell contents based on the new resolution.
EDIT: I apologize for any confusion earlier. My goal was to create a 'liquid layout' where the main elements ('panes') would adjust their size as the browser window resized. I discovered that by making an AJAX call to refresh the 'pane' contents after resizing and keeping overflow:auto activated, I could prevent scrolling issues.