[ticket/12811] Fix padding/margin bug affecting bottom layout

PHPBB3-12811