I'd like to ask, why there is a gap around the images. Is there something about this behaviour in the specification?
Simple code where you can see the gap between images:
<style>img {width: 100px; height: 100px; background: red;}</style>
<img><br>
<img><br>
<img>
http://jsfiddle.net/sfptspj0/
I know that there is more posibilities how to remove this gap:
- display: block;
- float
- vertical-align
But I want to know why there is the gap, not how to remove that.
Any ideas?
Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…