Consider these three snippets where I'm giving margin-bottom
to each of the input types one-by-one. While the other input types push the item below by '10px', input type="img"
does the exact opposite and it pushes itself.
<input type="submit" />
<input type="image" src="https://via.placeholder.com/150/0000FF/808080?Text=Digital.com" style="margin-bottom:10px"/>
<input type="text"/>
<div style="background-color:blue">bottom text</div>
<input type="submit" style="margin-bottom:10px"/>
<input type="image" src="https://via.placeholder.com/150/0000FF/808080?Text=Digital.com"/>
<input type="text"/>
<div style="background-color:blue">bottom text</div>
<input type="submit" />
<input type="image" src="https://via.placeholder.com/150/0000FF/808080?Text=Digital.com"/>
<input type="text" style="margin-bottom:10px"/>
<div style="background-color:blue">bottom text</div>
P.S I came up with this while having the discussion on Why does margin works differently on input type image than the other types of input elements? And I thought of editing the question to this. However, I'm not sure if the OP meant the same, so putting this as another question.