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?<
you can either display the div as inline-block or set float: [left|right]
inline-block
float: [left|right]
Using inline style
style="display: inline-block;" style="float: left;"
using css
.message { display: inline-block; } .message { float: left; }