CSS Property:
display:

Result:
A span element. mySpan. Another span element.
CSS Code:

span#mySpan {
  background-color:red;
  display:inline;
}
  
Click the property values above to see the result
W3Schools.com - Play it