I found a problem with centre aligning text in a button on Safari. It's to do with the width being set and Safari (and iPhone) then ignoring the text-align attribute. Putting around the button content resolved the problem. (One shortcoming of the solution is that onClick handlers on the button may need to check if the target is the span or the button if they need to deal with the target itself.)
I found a problem with centre aligning text in a button on Safari. It's to do with the width being set and Safari (and iPhone) then ignoring the text-align attribute. Putting around the button content resolved the problem. (One shortcoming of the solution is that onClick handlers on the button may need to check if the target is the span or the button if they need to deal with the target itself.)