Getting 2 divs on the same line

后端 未结 5 1488
离开以前
离开以前 2021-01-22 05:29

I\'m trying to get 2 divs on the same line, I\'ve got

5条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-22 06:07

    Set

    display: inline-block;

    And then set their widths as you need (as an absolute value or percentages of the parent container)

    Live Demo

提交回复
热议问题