how to avoid a new line with p tag?

后端 未结 5 599
灰色年华
灰色年华 2020-12-13 02:07

How can I stay on the same line while working with

tag?

5条回答
  •  一生所求
    2020-12-13 02:29

    Flexbox works.

    .box{
      display: flex;
      flex-flow: row nowrap;
      justify-content: center;
      align-content: center;
      align-items:center;
      border:1px solid #e3f2fd;
    }
    .item{
      flex: 1 1 auto;
      border:1px solid #ffebee;
    }

    A

    B

    C

提交回复
热议问题