I am struggling with applying a background image to a button on my web page. Despite using the code provided, the background image does not show up. Can someone help me understand why this is happening?
Check out this demo: https://jsfiddle.net/p7octep1/
.form-file-upload .close {
display: block;
position: absolute;
top: -13px;
right: -13px;
width: 26px;
height: 26px;
font-size: 18px;
text-align: center;
line-height: 26px;
z-index: 3;
border: 0;
background: url(http://placehold.it/26x26) 0 0 no-repeat;
}
<div class="form-file-upload">
<button type="button" class="close"></button>
</div>