I have a site which uses a fixed width design which is centred in the page.
I would like to use normenu to present cascading menus from a single button.
Currently if I do this I have to specify the x and y co-ordinates of the button, but this means the button always appears in a different position (relative to the rest of the design which is changing) on different screen resolutions.
Is there anyway of specifying the button relatively or has anyone got a work around that detects the browser width and height and then changes the x and y co-ordinated "on load" and "on resize" to keep the position of the button constant relative to the site design.
I was going to try this myself, but JavaScript is a language I seldom use and it's proving more difficult than I thought it would be.
I would like to use normenu to present cascading menus from a single button.
Currently if I do this I have to specify the x and y co-ordinates of the button, but this means the button always appears in a different position (relative to the rest of the design which is changing) on different screen resolutions.
Is there anyway of specifying the button relatively or has anyone got a work around that detects the browser width and height and then changes the x and y co-ordinated "on load" and "on resize" to keep the position of the button constant relative to the site design.
I was going to try this myself, but JavaScript is a language I seldom use and it's proving more difficult than I thought it would be.
Comment