A div can be alinged center like this
<div align="center">Div to be aligned vertically</div>
Now, how can i achieve this using jquery.
In jquery we can work on css. But align="center" is not a css property.
SO how can we achieve this using jquery.
I want to mention that I wanted to know how to align="center" a div, not to just centering a div.
My question was just to apply the align="center" using jquery. The post which has been linked with this question of mine, has different approach using window.width and window.height method.
 
     
     
     
     
     
     
    