I've seen these non-duplicate questions:
Input with display:block is not a block, why not?
Actual Question:
"How do I get the input to fill the width?"
button with display:block not stretched
Actual Question:
"stretch to 100% width if their display is block. How to achieve this?"
Both of these questions might have been duplicates if the title was the actual question they asked, but in both cases, the question title and actual question are mismatched.
I'm asking specifically:
Why do buttons act different? What exactly is it that makes buttons not grow to 100% width when given display:block
?
button, span {
display: block;
background: #FAF;
}
<button>Hey</button>
<span>Hi</span>