overflow: hidden ; causing alignment issues in firefox

前端 未结 1 734
孤独总比滥情好
孤独总比滥情好 2020-12-16 21:16

I have a layout which renders perfectly fine in Webkit based browsers but in internet explorer and firefox the vertical alignment is off. The simplest example of the code is

相关标签:
1条回答
  • 2020-12-16 22:16

    For inline-block I usually specify vertical-align:top to alleviate vertical alignment issues. And be aware that there will be horizontal gaps between the sibling divs that have inline-block, which can only be fixed by killing the literal whitespace in the HTML.

    And I hope you are using a doctype.

    Hope this helps, otherwise please setup a jsfiddle so I can visually see this.

    0 讨论(0)
提交回复
热议问题