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