CSS - How to remove whitespace between anchored images

痞子三分冷 提交于 2019-12-04 11:20:33

Placing the CSS property vertical-align to bottom on the top image will remove the gap in Firefox.

Perhaps setting the images to display:block would work. As an image is by default inline with the text, it leaves space at the bottom for descendenders (such as j,g,and y), even though an image will never have any. Many browsers account for this, but doing so is non-standard. Setting them to block should remove this annoyance in all browsers.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!