DIV tag creating new line in php

后端 未结 5 1265
清歌不尽
清歌不尽 2021-01-29 00:20

I am trying to style results from database but when I echo

it is creating new line after each result. How can I force the div not to create a new line?<
5条回答
  •  猫巷女王i
    2021-01-29 01:20

    Use css property display:inline-block e.g.

    .message{
      border:2px solid;
      background-color:white;
      display:inline-block;
     }
    

    It will arrange your messages linearly.

提交回复
热议问题