SITUATION :
In my Ionic 2 app, I need to have a menu button on two lines: an icon and text.
The problem is that somehow the ion button directive forces the button to be on the same line.
I need an ion button directive so that the button always has the correct formatting and positioning. I just need this button to be on two lines.
This is the html and css of my attempt:
HTML :
<ion-header> <ion-navbar> <button ion-button menuToggle="left" start> <ion-icon name="menu"></ion-icon> <br /> <p class="menuSubTitle">MENU</p> </button> <ion-title> HomePage </ion-title> <button ion-button menuToggle="right" end> <ion-icon name="person"></ion-icon> <br /> <p lass="menuSubTitle">LOGIN</p> </button> </ion-navbar> </ion-header>
CSS :
.menuSubTitle { font-size: 0.6em; float:left; display: block; clear: both; }
QUESTION :
How can I make an ionic button on two lines?
Thanks!
source share