Getting 2 divs on the same line

后端 未结 5 1887
梦如初夏
梦如初夏 2021-01-22 05:53

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

5条回答
  •  有刺的猬
    2021-01-22 06:19

    You can play with float:

    float: left;
    float: right;
    clear: both;
    

    This is not always easy to do.

    Another option is to use

    display: inline-block;
    

    or to use a span.

提交回复
热议问题