I have a span element inside a button. The span has a background colour but I cannot get it to fill the button in Firefox, it's fine in Chrome and IE.
I've looked at two similar questions but their answers don't seem to fix this for me.
Here's a stripped down version of my problem:
div {
height: 300px;
width: 300px;
background-color: red;
}
button {
padding: 0px;
margin: 0px;
color: inherit;
border: 0px none;
background-color: blue;
}
span {
background-color: yellow;
display: block;
width: 100%;
}
<div>
<button><span>span</span></button>
</div>