When using a table, the border appears outside the table’s container in Firefox. This is caused by having the table’s CSS border-collapse property set to collapse. To fix the issue, set the table’s border-collapse property to separate. Unfortunately, this will double up on cell borders.