Javascript Menu

Out of context: Reply #1

  • Started
  • Last post
  • 2 Responses
  • dc_again0

    doesn't matter if your site is centre aligned.

    absolutely positioned items are positioned top and left of their positioned container - in most cases this is the browser window.

    however, if you have, for instance, a div centre aligned (containing your site) and position it "relative", any absolutely positioned items within that div will be positioned absolutely within *that* div, not the browser window.

    so you can place your javascript menu where ever you want within your site, but your site - and everything else - will remain in the centre of the browser.

    hope this makes sense. not the easiest thing to describe without showing examples. if you need to see something, give me a shout.

View thread