cannot eliminate space between 2 horizontal divs inside containing div

后端 未结 5 918
孤独总比滥情好
孤独总比滥情好 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:44

    Use the float property.

    Example with div { float: left; } : http://jsfiddle.net/tLZrm/10/.

提交回复
热议问题