My wordpress template uses facebox to display portfolio images via ajax requests.
The problem is the images load in different positions depending on the viewers screen size.
My template uses
$('#facebox').css({
top: getPageScroll()[1] + (getPageHeight() / 10),
left: 385.5
}).show()
The facebox site uses
$('#facebox').css({
top: getPageScroll()[1] + (getPageHeight() / 10),
left: $(window).width() / 2 - 205
}).show()
The facebox site displays images perfectly but when I use the same line with my template is doesn't display properly.
Can someone point me in the right direction for getting the images to load consistently in the center of the screen?