for a plain line try white texture with ie 1px height
for a pixel perfect border try the box rendering mode & a border texture (literally a texture with 1px white border on the edges and transparency inside)
That affects how pixel perfect are elements rendered. Depends a lot if you wanna scale them or keep them same in different resolutions, but generally this is the way how to tackle this problem.