Hi, I have a home screen with 9 icons in a 3x3 grid (with images linked) which I currently have created using images and text underneath. I also have tabs using the Ionic icons. I want to replace my images with the icons - http://ionicframework.com/docs/components/#icon-buttons shows some examples but not how to place the text under the icon.
Is it possible to do this and have my icons relatively much bigger than the text below them, or do I need separate elements for icon and text as described here ?
This is what I’m trying to do:
Also, I have seen this post on how to change icon size, but do not understand “.my-button” - is the “my-” prefix a reserved space within the Ionic framework?
The .my- prefix isn’t reserved anywhere in the framework. It was just an arbitrary class name I used so I wouldn’t override the ionic defaults. Plus it makes it easier to know what your code is when debugging.
However, what I was asking is it possible to set icon and text size to be different like as in my screen grab, using the same element? Or would I need two grid rows or divs for each icon, one for the icon and one for the text?
Thank you for your reply, I actually have an ion list of buttons which each icon url is gotten from data server, It’s simple if we had a src="{{iconUrl}}" attribute. otherwise can you give a way how to define urls icon dinamically in css ?