I figured this out, the problem had nothing to do with the above code, the white line appearing there was regarding the post information, on the theme I use (DeepFocus from elegant themes), this part can be hidden with .post-meta{display: none;}
For different themes is just a matter of finding the styling regarding that part and change it accordingly.
Any more info I am more than happy to help!