They apply display:block to all three elements. This is important because by default img and span elements are inline, unlike p and div tags, which are block elements by default.
Elements that display:block by default occupy all the space from left to right and save their own line, and also click other elements on the next line. Even if a width is applied that limits their size, they will still remain on a separate line unless you change the position element to absolute or float .
source share