Firefox sucks. It adds extra padding to buttons which meant I wasted 6 hours looking for a solution.