make div fill up remaining space

后端 未结 3 601
不思量自难忘°
不思量自难忘° 2021-02-05 18:58

i have 3 divs conatined within an outer div. i am aligning them horizontally by floating them left. and div3 as float right

3条回答
  •  深忆病人
    2021-02-05 19:46

    You don't need to float #div2, it'll automatically fill up the remaining space.

    If you want borders/padding, you ought to give #div2 a child element.

提交回复
热议问题