it helps some times To move sideways you simply have to translate the eye position along the camera's right vector. To find the right vector, remember that the cross product of two vectors gives a perpendicular vector. So, the cross product of your forward vector and your up vector will give the right vector.
With these it helps The answer by Nicol Bolas pretty much tells what you're doing wrong so I'll skip that. You are looking for an solution rather than telling you what is wrong, so let's step right into it. This is code I use for projection matrix:
fixed the issue. Will look into that further After some tests, I found the problem: it's the scrollbarhead which is causing the problem. I think you've got this script from some website, and this table header is adding the gap you don't want. I "removed" it with a simple display:none, and it's working (I also changed the width to 100%):