Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
ons-tab
-
Represents a tab inside tabbar. Each ons-tab represents a page.
Click here to see the original article
-
For some reason my icons are not centred. How do you centre your icons?
-
@Vincent-Bastos Well actually they are centered by default. Here’s a demo.
Most likely you have some sort of style which is overriding the default one.
You should be able to fix it by writing.tab-bar__button { text-align: center; }
in a css file and include it. Alternatively you could just write
style="text-align: center"
in theons-tab
elements.