-1

I'm trying to center my button vertically, but isn't working:

HTML:

<div class="col-md-6 text-right">
    <a class="btn btn-small btn-gray" ui-sref="login">Start Session</a>
</div>

CSS:

.btn {
    vertical-align: middle;
}
KyleMit
  • 30,350
  • 66
  • 462
  • 664
Mônica R.
  • 225
  • 2
  • 13

1 Answers1

0

Possible duplicate of How to vertical align middle a button in a dynamic div

But, I think you need to just add

display:inline-block;

to your .btn CSS.

Community
  • 1
  • 1
Stan Shaw
  • 3,014
  • 1
  • 12
  • 27