Workaround for Safari and Chrome CSS alignment bug