0

Something like this

HTML

<button class="img">This button has an image</button>
<button class="img">This button has the same image</button>

CSS

.img {
        url: '/testimage.png'
}
Vardan Betikyan
  • 354
  • 5
  • 20

1 Answers1

7

Use background-image property.

.img {
  background-image: url("testimage.png");
}
wangdev87
  • 8,611
  • 3
  • 8
  • 31