Dear All The actual program is in IFRAME is membersearch.php http://webvikas.net.in/quote/admin/memberselect.php when I click check box, I get following values I am using following script Copy code alert("window height "+$(window).height()); alert("this Scroll TOP "+$(this).scrollTop()); window height : 1250 Scrol TOP : 0 Due to wrong values, my DIV is not displayed in center however when i run this the very same program in separate window http://webvikas.net.in/quote/admin/membersearch.php I get window height : 799 Scrol TOP : 0 As a result the DIV is displayed in center perfectly well MY CSS is above JQUERY using <!DOCTYPE html> and tested in chrome
That's because a frame IS a window... as such you are getting the size of the IFRAME, not the window the IFRAME is in. Though this is 2013, not 1997. Why are you futzing around with frames? ... much less the code bloat of the inlined and long deprecated bgcolor attribute and classes for nothing?