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?<
it is creating new line after each result. How can I force the div not to create a new line?<
Use css property display:inline-block e.g.
.message{ border:2px solid; background-color:white; display:inline-block; }
It will arrange your messages linearly.