The difference is not between <span> and <div> specifically, but between inline and block elements. <span> defaults to being display:inline; whereas <div> defaults to being display:block;. But these can be overridden in CSS.
To fix it, use the below code
Sample Code:
<span style="display: block;">
To fix it, use the below code
Sample Code:
<span style="display: block;">
No comments:
Post a Comment