Just like what happens when you click Sign in with OpenID on http://twitterfeed.com/, I want my login frame displays in the center of the window, and only when some link is clicked.
But now I have difficult to center a div, I have written CSS as following but it doesn’t work
#logindiv {
position: relative;
overflow: auto;
margin: 0 auto;
}
The position/styling of the div can be emulated with:
The top left corner of the
#logindivis positioned absolutely at a point 50% across the width of the window and 50% of the height of the window (from the top-left origin).This is then altered by the
margins, moving it 50% of its height up the page, and 50% of its width back across the page. Changing the width/height of the#logindivwill require different negative margins for positioning centrally.