Menu icon Foundation
How to center button in modal window?

As you can see below, the "Text Me!" button is positioned on the left side of the window. Is it possible to center it?

Thanks!

Ss  2014 10 07 at 06.57.15

modalwindowbutton

As you can see below, the "Text Me!" button is positioned on the left side of the window. Is it possible to center it?

Thanks!

Ss  2014 10 07 at 06.57.15
Alexander Assimidis almost 5 years ago

<div class="row">
    <div class="large-2 push-5 columns">  
<button>Text me</button>
</div>
  </div>

There are more ways to do this but in your case i would stretch the button and center the text because it looks like this is for mobile or?

.reveal-modal {
button {
text-align:center;
width:100%;
}
}

or

.reveal-modal {
text-align:center;
}