How to place button icon on top?

Hi all,
Please help me to how to put button icon on top using ionic framework.Iam new to this framework.Please help me.


.icon-top .icon{ display: block;margin: 0 auto;height: 32px;font-size: 32px;}

<button class="button icon-top"><i class='icon ion-ionic'></i><span>Icon on Top</span></button>
1 Like

Hi rameezraja,

Thanks,It’s working fine.

I prefer same syntax as default (dont know why ionic dont provide this style in default)

  padding: 0;
  height: 4em;
  font-size: 1.5rem;

    display: block;
      display: block;
      font-size: 2.3em;
      margin-top: 3px;
      margin-bottom: 1px;