How to position two divs horizontally within another div

前端 未结 13 1004
悲哀的现实
悲哀的现实 2020-12-12 11:12

I haven\'t played with CSS for too long a time and am without references at the moment. My question should be fairly easy but googling isn\'t bringing up a sufficient answer

13条回答
  •  温柔的废话
    2020-12-12 11:32

    Its quite a common misconception that you need a clear:both div at the bottom, when you really don't. While foxy's answer is correct, you don't need that non-semantic, useless clearing div. All you need to do is stick an overflow:hidden onto the container:

    #sub-title { overflow:hidden; }
    

提交回复
热议问题