Pop up log in box displaying below the fold

When I click 'Log in' at my site, the pop up login box appears below the fold and I have to scroll down the page to see it.  Does anybody know how I can make the pop up log in box appear at the top of the page wgen I click log in?