fix padding issue and tested on firefox