Click to See Complete Forum and Search --> : Changing page items based on resolution


andersoni
08-20-2004, 11:12 PM
I have a site that my client wants to have displayed on the center of the page. The problem is that the menu on the left side is built on the fly from information in a DB and the menus are in a table that is in turn in a <div> element. All of these are positioned relative to the top and left side of the window.

My problem is that if the main table is centered and someone has not only a different screen resolution but the window is not maximized and they change the width of the screen, I need to change the position of the <div> and tables.

Any suggestions or code examples I could look at?

Thanks,

Ian Anderson

Khalid Ali
08-21-2004, 12:36 AM
if you use stylesheets such as property
text-align:center
then browser should automatically recalculate the and position the menu....

Thats just one suggestion...just look into CSS and you will find many more