advanced code snippet search
giver on 02/17/11
jquery center horizontal vertical
02/17/11 03:19pm02/17/11 03:15pm02/17/11 03:11pm
15 people have marked this snippet as a favorite
Report this snippet
It can be easily done by CSS:
border:1px solid #f00;
margin:-100px 0 0 -150px; /* negative margins half height and half width of centered block */
You are rignt kristapsancans, but this also means that parts of the content are invisible, if the width of the browser window is smaller than the content-width. And you can NOT scroll to the left to see the hidden content...
You need to login to post a comment.