-1

I have icons that fit perfectly, but sometimes, my icons are off center and get cutoff:

enter image description here

<button hidden id="sign-up-float-icon" class="floater mdl-button mdl-js-button mdl-button--icon">
      <i class="material-icons">more_vert</i>
    </button>

    <ul class="mdl-menu mdl-menu--bottom-right mdl-js-menu mdl-js-ripple-effect" for="sign-up-float-icon">
      <li class="mdl-menu__item" id="sign-up-email">
        Register with Email
      </li>
      <li class="mdl-menu__item" id="sign-in-google">
        Login with Google
      </li>
    </ul>

The face icon looks good. The right most 'options' icon looks cutoff. When I click the button, it works fine, it just doesn't look right. What's going on? I tried reading mdl components doc and SO but still could not find out the solution.

Thanks for your helpful answers

Edit:

I've included what the elements look like. As you can see, the button is aligned but the image is risen slightly.

enter image description here enter image description here

After some testing, can confirm that the issue is a problem with the code

Script Kitty
  • 1,737
  • 5
  • 27
  • 47

1 Answers1

0

CSS vertical-align can fix this. Just add a class to the material-icons element and apply vertical-align: 15%; to start. Change that number until you get what you want.

Ronnie Royston
  • 16,778
  • 6
  • 77
  • 91