Getting 2 divs on the same line

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

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

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-22 06:09

    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.

提交回复
热议问题