Adaptability for padding in Chrome and Firefox