jqeury: best way to place dom element in the center of viewport
- by Anthony Koval'
hello!
i'm looking for a proper way of placing popup div-elemnt in the center of current view area.
for example: we have some div element with {display:none; position:absolute} and few buttons, one on the top of document, second in the center and last one, somewhere in the bottom. By clicking on any of this button, div should appear in the center…