The problem - elements directly inside the DIV you "border" have a margin:
TEST
The fix - an inner hidden overflow DIV:
TEST