cannot eliminate space between 2 horizontal divs inside containing div

后端 未结 5 916
孤独总比滥情好
孤独总比滥情好 2021-02-04 16:00

Should be easy, right? Just set the outer containing div\'s padding to zero, and set the two side-by-side divs inside the outer div to have margin:0 but that\'s having no effe

5条回答
  •  有刺的猬
    2021-02-04 16:31

    The space rendered between your divs is the whitespace (represented as dots), collapsed, in:

        
    . ................. ....

    Instead, try coding like this:

        

    and the gap will vanish.

提交回复
热议问题