So, im trying to make it so my code has, at the bottom, 3 buttons next to each other with an image on them, planning on having each image change the text shown above said buttons. The issue is, my button ALWAYS has the same gap between the sides of the image and the sides of the button, changing height merely adds gap to the top and bottom, and reducing width just reduces the size of the whole button. full size button, reduced width.
I'd like to have the 3 images as mentioned next to each other, but have the button merely occupy the area the image does.
.button {
background-color: Transparent;
background-repeat: no-repeat;
/*border: none;*/
cursor: pointer;
overflow: hidden;
width: 23%;
height:100%;
padding: 0;
}
.speakers {
bottom: 0px;
text-align: center;
}
.speakers ul {
}
.speakers li {
display: inline;
}
<div class="speakers">
<ul>
<li><button class="button"><img src="img/rangel.png" alt="rangel" width="23%" height="auto"></button></li>
<li><button class="button"><img src="img/grootens.png" alt="grootens" width="23%" height="auto"></button></li>
<li><button class="button"><img src="img/lupi.png" alt="lupi" width="23%" height="auto"></button></li>
</ul>