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.
Center an image inside ons-toolbar in Android
-
Hello,
I’m trying to center an image (logo) in the ons-toolbar on Android devices.
on iOS it is centered but on Android it is slightly to the left so its not centered.
This is my code:
https://codepen.io/anon/pen/XRbmxo?&editors=101
Although I 'm using onsenui v2.0.0-rc.15 in my project.
Could someone please advice on this?
Thanks
-
@David-Hope Hi! Whenever you need to make something that is not default in iOS or Android, simply check the DOM and overwrite styles. Have a look at this.
-
@Fran-Diox Hi, the pen you’ve posted is empty (just a a white screen).
As for my issue, I had to use an absolute position div and center that to achieve what i was trying to achieve.
Thanks
-
@David-Hope Oops, looks like I forgot to hit “Save” :sweat_smile: I updated the link.
-
@Fran-Diox cheers. appreciate it. Sorry for being cheeky but can you shed a light on this issue as well please: https://community.onsen.io/topic/1376/onsen-carousel-initial-index-doesn-t-work