fixed the unexpected margin:
apparently you can't have block elements inside inline elements... for some unexplained reason.