A HTML5 <button> in Mobile Safari seems to have fixed, unchangeable left and right padding. Here’s a demo plus how it looks in Safari 5 and iOS4.
How can I get rid of that padding?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I just figured out that the “additional padding” is always 1em. In case you use an absolute number for your font-size, you can set the button’s font-size to 0 and reset it for the inner element: