Here is a solution for your problem...
In the above lines of code in div style you mentioned style property as left: 1px;
. So it taking 1px space in your page. So change that to left:0px;
as below. Now you will not get space anywhere.
Hope you got your expected solution..