- This topic is empty.
Hello first off i’m very new to all this so i need some help I need to add an image icon infront of the text through js only
So when the button is generated it would look like:
Thanks in advance.
Why not use CSS?
If i can get it working that way that would be great, its because i have 5 buttons under btn btn-mini btn-block
And need an Icon on each of them, they are generated through the js script what way could you suggest doing it.
Well, I would use IcoMoon to create an icon font. And then use :before selector in CSS to put the icons before the text.