Answers
Aug 05, 2008 - 06:03 AM
Aug 06, 2008 - 08:28 AM
It needs to be horizontically and vertically centered and working also if the user has scrolled down on the page.
Sep 08, 2009 - 02:31 AM
Nov 27, 2009 - 05:15 AM
The Quomon Team
Mar 16, 2010 - 04:04 PM
This content should be centered in your browser window. CSS is used for horizontal alignment, while scripting is used for vertical alignment.
Dec 25, 2014 - 02:30 AM
Dec 25, 2014 - 08:21 PM
In css class set position to be fixed then write below code in Javascript :
{var width = $(window).width();var heigth = $(window).height();var myWindow = $('.my-window');
myWindow .show('fast');
myWindow .offset({
left:(width - myWindow .width())/2+ $(window).scrollLeft(),
top:(heigth - myWindow .height())/2+ $(window).scrollTop()});}
Add New Comment