Question 1: Why?
Because it’s by default not a block element.
Question 2: How to fix that?
Make it a block element using display: block;
, or an inline block by display: inline-block;
.
Question 1: Why?
Because it’s by default not a block element.
Question 2: How to fix that?
Make it a block element using display: block;
, or an inline block by display: inline-block;
.