jimmyshoes
Programmer
I understand that inline elements are laid out in lines and so vertical placement does not apply
If this is the case, then why is it that <img> can be padded 'all round' whereas <span> can only be padded left and right
If this is the case, then why is it that <img> can be padded 'all round' whereas <span> can only be padded left and right
Code:
<div style="border:1px solid #000000">
<img src="1.jpg" style="padding:29px"/>
</div>
<div style="border:1px solid #000000">
<span style="padding:29px">Text</span>
</div>