+ 10
How to add image in a button ?
In the code below I wanna add a image in the 'Apps' button and if possible then please also tell me how to align the 'Apps' button to right . https://code.sololearn.com/WKzkAeBb8uPx/?ref=app
6 Answers
+ 17
https://code.sololearn.com/WsOXwpRvfTmQ/?ref=app
+ 4
Or if you just wanna trigger stuff,
you can add an onclick attribute to an img tag
+ 3
I think is better and fast to do an image like a button
+ 3
You can create a button and add ID or class for the button then go to CSS and use this below.
#exampleButton or .exampleButton {
background or background-image: url('your image file or link');
}
+ 1
use css. background-image for button
+ 1
Thnx đ¤đ¤