Just noticed this issue now, if I have a span
element I can make it the full width of the parent container if I apply the style display: block
but I've noticed the same doesn't happen when the element is a button
.
Question is, why ? Why does a button behave differently (be default it's a block element if I remember correctly)
I've fixed it by applying width:100%
to the button but not really sure why it behaves differently.
Fiddle for testing: https://jsfiddle.net/9k3pjy9e/1/