Quantcast
Viewing all articles
Browse latest Browse all 229966

Ionic 2 how to set background img in button

You can add a class to your button and style it all in CSS.

Here is a quick example:

HTML:
<button class="yourButton">Your Text<button>

CSS:

.yourButton {
   background: url('../your/Image/URL/myimage.png');
   text-align: center;
   background-size: cover;
}

Also check this this link out it will help you understand CSS better!

Hope this helps you out! Image may be NSFW.
Clik here to view.
:blush:
Image may be NSFW.
Clik here to view.
:bird:


Viewing all articles
Browse latest Browse all 229966

Trending Articles