Home › Forums › CSS › [Solved] centered button in a fixed width div shifts to left in ipad › Reply To: centered button in a fixed width div shifts to left in ipad
September 18, 2013 at 1:13 am
#150439
farzadina
Participant
I used this method to solve the problem:
http://stackoverflow.com/questions/18866532/margin-centered-button-shifts-to-left-in-ipad
I added a .button-wrapper
as parent of my button and gave it text-align:center
style, then added a display:inline-block
to the button, so it centered in both monitor & ipad.